mirror of https://github.com/status-im/nim-eth.git
add more tests to verify network state replacement
This commit is contained in:
parent
8115885b6e
commit
cc52ef35e4
|
@ -90,5 +90,7 @@ suite "Testing protocol handlers":
|
|||
test "Override network state":
|
||||
let rng = newRng()
|
||||
var node = setupTestNode(rng, hah)
|
||||
node.addCapability(hah, network())
|
||||
node.replaceNetworkState(hah, network())
|
||||
node.addCapability(hah, network(count: 3))
|
||||
check node.protocolState(hah).count == 3
|
||||
node.replaceNetworkState(hah, network(count: 7))
|
||||
check node.protocolState(hah).count == 7
|
||||
|
|
Loading…
Reference in New Issue