From cefbf4f58ca573ab58fd798614b63f5b2a418113 Mon Sep 17 00:00:00 2001 From: corver Date: Wed, 16 Oct 2024 09:18:53 +0200 Subject: [PATCH] test(lib/xchain): fix flapping merkle test (#2185) Test flapped since it sometimes didn't actually increase the index issue: none --- lib/xchain/merkle_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xchain/merkle_test.go b/lib/xchain/merkle_test.go index e7b53e614..8d6a5025a 100644 --- a/lib/xchain/merkle_test.go +++ b/lib/xchain/merkle_test.go @@ -21,7 +21,7 @@ func TestMsgTreeNoVerify(t *testing.T) { // Ensure msg.LogIndex is increasing for i := 1; i < len(msgs); i++ { - msgs[i].LogIndex = msgs[i-1].LogIndex + uint64(rand.Intn(1000)) + msgs[i].LogIndex = msgs[i-1].LogIndex + 1 + uint64(rand.Intn(1000)) } tree, err := xchain.NewMsgTree(msgs)