Unverified Commit e1365b24 authored by gary rong's avatar gary rong Committed by GitHub

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

parent fdb74241
...@@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) { ...@@ -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:]...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment