From b9626bfebffbf502d644734bfbb45499d833de1c Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 26 May 2025 15:17:31 +0800 Subject: [PATCH] trie: fix gaped range proof test case #21484 (#1047) Co-authored-by: gary rong --- trie/proof_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/proof_test.go b/trie/proof_test.go index b554dd255d..7430b1a238 100644 --- a/trie/proof_test.go +++ b/trie/proof_test.go @@ -451,7 +451,7 @@ func TestBadRangeProof(t *testing.T) { // with the first/last second element(since small values are // embedded in the parent). Avoid this case. 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 } keys = append(keys[:index], keys[index+1:]...)