Skip to content

Commit

Permalink
jvm-libs: fix flacky unit test on JSON-RPC (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnovais authored Feb 5, 2025
1 parent b5194c0 commit 1fd68e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import tech.pegasys.teku.infrastructure.async.SafeFuture
import java.math.BigInteger
import java.net.ConnectException
import java.net.URI
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.ExecutionException
import java.util.function.Predicate
import kotlin.time.Duration
Expand Down Expand Up @@ -509,7 +510,7 @@ class JsonRpcV2ClientImplTest {
// stop the server to simulate connection error
wiremock.stop()

val retryPredicateCalls = mutableListOf<Result<String?, Throwable>>()
val retryPredicateCalls = CopyOnWriteArrayList<Result<String?, Throwable>>()

val reqFuture = client.makeRequest(
method = "someMethod",
Expand Down

0 comments on commit 1fd68e1

Please sign in to comment.