From 3ecccfe6ce2118aaf81054aeca68377707ef9834 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 23 Jun 2022 21:28:35 -0400 Subject: [PATCH] problem: failing unit test rel: [6aae65c] --- .../dshackle/upstream/calls/ManagedCallMethodsSpec.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/groovy/io/emeraldpay/dshackle/upstream/calls/ManagedCallMethodsSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/upstream/calls/ManagedCallMethodsSpec.groovy index b049a302..580c9669 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/upstream/calls/ManagedCallMethodsSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/upstream/calls/ManagedCallMethodsSpec.groovy @@ -72,7 +72,7 @@ class ManagedCallMethodsSpec extends Specification { def delegated = ["eth_test", "eth_test2"] as Set def delegate = Mock(CallMethods) { _ * it.getSupportedMethods() >> delegated - 1 * it.getQuorumFor("eth_test") >> new BroadcastQuorum() + 0 * it.getQuorumFor("eth_test") >> new BroadcastQuorum() } def managed = new ManagedCallMethods( delegate, @@ -83,7 +83,7 @@ class ManagedCallMethodsSpec extends Specification { def act = managed.getQuorumFor("eth_test") then: act != null - act instanceof BroadcastQuorum + act instanceof AlwaysQuorum } def "Use custom quorum if provided"() {