trie: fix gaped range proof test case (#21484)

pull/21250/head
gary rong 4 years ago committed by GitHub
parent fdb742419e
commit e1365b2464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      trie/proof_test.go

@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) {
// with the first/last second element(since small values are // with the first/last second element(since small values are
// embedded in the parent). Avoid this case. // embedded in the parent). Avoid this case.
index = mrand.Intn(end - start) index = mrand.Intn(end - start)
if (index == end-start-1 || index == 0) && end <= 100 { if (index == 0 && start < 100) || (index == end-start-1 && end <= 100) {
continue continue
} }
keys = append(keys[:index], keys[index+1:]...) keys = append(keys[:index], keys[index+1:]...)

Loading…
Cancel
Save