Fix quorum (#700)

This commit is contained in:
KirillPamPam
2025-08-12 17:36:23 +04:00
committed by GitHub
parent a34f2186cc
commit 0063c89865
2 changed files with 3 additions and 8 deletions

View File

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