Merge pull request #20779 from meowsbits/patch-3

core/rawdb: fix freezer table test error check
This commit is contained in:
Péter Szilágyi 2020-03-18 16:30:58 +02:00 committed by GitHub
commit 36e93d2dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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