From 81d4b53f24d74f60c252f2d47798a69df10d1ed9 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Sat, 24 Sep 2022 08:53:04 -0700 Subject: [PATCH] Fix LES tests randomly failing to load bouncycastle extension --- .../test/kotlin/org/apache/tuweni/les/LESSubprotocolTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/les/src/test/kotlin/org/apache/tuweni/les/LESSubprotocolTest.kt b/les/src/test/kotlin/org/apache/tuweni/les/LESSubprotocolTest.kt index e44c5b474..593208a69 100644 --- a/les/src/test/kotlin/org/apache/tuweni/les/LESSubprotocolTest.kt +++ b/les/src/test/kotlin/org/apache/tuweni/les/LESSubprotocolTest.kt @@ -25,6 +25,7 @@ import org.apache.tuweni.eth.Hash import org.apache.tuweni.eth.repository.BlockchainRepository import org.apache.tuweni.eth.repository.MemoryTransactionPool import org.apache.tuweni.genesis.Genesis +import org.apache.tuweni.junit.BouncyCastleExtension import org.apache.tuweni.junit.TempDirectoryExtension import org.apache.tuweni.rlpx.MemoryWireConnectionsRepository import org.apache.tuweni.rlpx.wire.SubProtocolIdentifier @@ -35,7 +36,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.TestInstance import org.junit.jupiter.api.extension.ExtendWith -@ExtendWith(TempDirectoryExtension::class) +@ExtendWith(TempDirectoryExtension::class, BouncyCastleExtension::class) @TestInstance(TestInstance.Lifecycle.PER_CLASS) internal class LESSubprotocolTest {