mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-16 03:41:35 +00:00
triedb/pathdb: fix layer 5 key range in account iterator traversal test (#34639)
The layer-5 diff condition used `i > 50 || i < 85`, which is true for almost all keys in the 0..255 loop. Use `i > 50 && i < 85` so layer 5 only covers the intended band (51..84), consistent with the snapshot iterator test fix.
This commit is contained in:
parent
75a64ee341
commit
19dc690af8
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ func TestAccountIteratorTraversalValues(t *testing.T) {
|
||||||
if i%8 == 0 {
|
if i%8 == 0 {
|
||||||
e[common.Hash{i}] = fmt.Appendf(nil, "layer-%d, key %d", 4, i)
|
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)
|
f[common.Hash{i}] = fmt.Appendf(nil, "layer-%d, key %d", 5, i)
|
||||||
}
|
}
|
||||||
if i%64 == 0 {
|
if i%64 == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue