core/state/snapshot: fix condition in iterator traversal test (#34638)

Fixes a condition in a snapshot-related test.
This commit is contained in:
cui 2026-05-02 02:22:48 +08:00 committed by GitHub
parent 41b856d472
commit d270e211d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,7 +441,7 @@ func TestStorageIteratorTraversalValues(t *testing.T) {
if i%8 == 0 {
e[common.Hash{i}] = fmt.Appendf(nil, "layer-%d, key %d", 4, i)
}
if i > 50 || i < 85 {
if i > 50 && i < 85 {
f[common.Hash{i}] = fmt.Appendf(nil, "layer-%d, key %d", 5, i)
}
if i%64 == 0 {