mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
fix(ancienttest): use TruncateHead(0) to truly reset before re-appending
This commit is contained in:
parent
b381804eb1
commit
8ddbafcf8f
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ func basicWrite(t *testing.T, newFn func(kinds []string) ethdb.AncientStore) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write should work after truncating everything
|
// Write should work after truncating everything
|
||||||
db.TruncateTail(0)
|
db.TruncateHead(0)
|
||||||
_, err = db.ModifyAncients(func(op ethdb.AncientWriteOp) error {
|
_, err = db.ModifyAncients(func(op ethdb.AncientWriteOp) error {
|
||||||
for i := 0; i < 100; i++ {
|
for i := 0; i < 100; i++ {
|
||||||
op.AppendRaw("a", uint64(i), dataA[i])
|
op.AppendRaw("a", uint64(i), dataA[i])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue