Skip to content

Commit e1365b2

Browse files
authored
trie: fix gaped range proof test case (#21484)
1 parent fdb7424 commit e1365b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎trie/proof_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) {
451451
// with the first/last second element(since small values are
452452
// embedded in the parent). Avoid this case.
453453
index = mrand.Intn(end - start)
454-
if (index == end-start-1 || index == 0) && end <= 100 {
454+
if (index == 0 && start < 100) || (index == end-start-1 && end <= 100) {
455455
continue
456456
}
457457
keys = append(keys[:index], keys[index+1:]...)

0 commit comments

Comments
 (0)