mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-27 13:10:34 +00:00
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…
x
Reference in New Issue
Block a user