Unverified Commit 36e93d2d authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #20779 from meowsbits/patch-3

core/rawdb: fix freezer table test error check
parents 4655b609 20a092fb
...@@ -196,11 +196,9 @@ func TestFreezerRepairDanglingHeadLarge(t *testing.T) { ...@@ -196,11 +196,9 @@ func TestFreezerRepairDanglingHeadLarge(t *testing.T) {
f.Append(uint64(x), data) f.Append(uint64(x), data)
} }
// The last item should be there // The last item should be there
if _, err = f.Retrieve(f.items - 1); err == nil { if _, err = f.Retrieve(f.items - 1); err != nil {
if err != nil {
t.Fatal(err) t.Fatal(err)
} }
}
f.Close() f.Close()
} }
// open the index // open the index
......
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