Skip to content

Commit

Permalink
test(lib/xchain): fix flapping merkle test (#2185)
Browse files Browse the repository at this point in the history
Test flapped since it sometimes didn't actually increase the index

issue: none
  • Loading branch information
corverroos authored Oct 16, 2024
1 parent 04d0fad commit cefbf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xchain/merkle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cefbf4f

Please sign in to comment.