problem: failing unit test

rel: [6aae65c]
This commit is contained in:
Igor Artamonov
2022-06-23 21:28:35 -04:00
parent 6aae65cf40
commit 3ecccfe6ce

View File

@@ -72,7 +72,7 @@ class ManagedCallMethodsSpec extends Specification {
def delegated = ["eth_test", "eth_test2"] as Set def delegated = ["eth_test", "eth_test2"] as Set
def delegate = Mock(CallMethods) { def delegate = Mock(CallMethods) {
_ * it.getSupportedMethods() >> delegated _ * it.getSupportedMethods() >> delegated
1 * it.getQuorumFor("eth_test") >> new BroadcastQuorum() 0 * it.getQuorumFor("eth_test") >> new BroadcastQuorum()
} }
def managed = new ManagedCallMethods( def managed = new ManagedCallMethods(
delegate, delegate,
@@ -83,7 +83,7 @@ class ManagedCallMethodsSpec extends Specification {
def act = managed.getQuorumFor("eth_test") def act = managed.getQuorumFor("eth_test")
then: then:
act != null act != null
act instanceof BroadcastQuorum act instanceof AlwaysQuorum
} }
def "Use custom quorum if provided"() { def "Use custom quorum if provided"() {