From 7047da19b152c55e213365e3fd81b0da001641d8 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 9 May 2022 15:31:22 +0200 Subject: [PATCH] Eliminate small chance of test failing Test would sometimes fail because the example seq would be empty in both cases. --- tests/nitro/wallet/testNonces.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nitro/wallet/testNonces.nim b/tests/nitro/wallet/testNonces.nim index fbc93b7..cba724d 100644 --- a/tests/nitro/wallet/testNonces.nim +++ b/tests/nitro/wallet/testNonces.nim @@ -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