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)