mirror of
https://github.com/logos-storage/nim-nitro.git
synced 2026-02-23 07:03:37 +00:00
Eliminate small chance of test failing
Test would sometimes fail because the example seq would be empty in both cases.
This commit is contained in:
parent
6b4c455bf4
commit
7047da19b1
@ -4,7 +4,7 @@ import pkg/nitro/wallet/nonces
|
||||
suite "nonces":
|
||||
|
||||
let chainId = UInt256.example
|
||||
let participants = seq[EthAddress].example
|
||||
let participants = seq[EthAddress].example(1..5)
|
||||
|
||||
var nonces: Nonces
|
||||
|
||||
@ -27,7 +27,7 @@ suite "nonces":
|
||||
check nonces.getNonce(chainId, participants) == 102
|
||||
|
||||
test "nonces are different when participants differ":
|
||||
let otherParticipants = seq[EthAddress].example
|
||||
let otherParticipants = seq[EthAddress].example(1..5)
|
||||
nonces.incNonce(0, chainId, participants)
|
||||
check nonces.getNonce(chainId, otherParticipants) == 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user