core/rawdb: fix freezer table test error check

Fixes: Condition is always 'false' because 'err' is always 'nil'
pull/20779/head
meowsbits 5 years ago committed by GitHub
parent 5dd0cd12ec
commit 20a092fb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      core/rawdb/freezer_table_test.go

@ -196,10 +196,8 @@ func TestFreezerRepairDanglingHeadLarge(t *testing.T) {
f.Append(uint64(x), data)
}
// The last item should be there
if _, err = f.Retrieve(f.items - 1); err == nil {
if err != nil {
t.Fatal(err)
}
if _, err = f.Retrieve(f.items - 1); err != nil {
t.Fatal(err)
}
f.Close()
}

Loading…
Cancel
Save