mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
squashme: more error checks
This commit is contained in:
parent
353ded8fc4
commit
af91fb4194
1 changed files with 4 additions and 0 deletions
|
|
@ -224,8 +224,12 @@ func TestFreezerRepairDanglingHeadLarge(t *testing.T) {
|
||||||
// Now open it again
|
// Now open it again
|
||||||
{
|
{
|
||||||
f, err := newCustomTable(os.TempDir(), fname, rm, wm, 50, true)
|
f, err := newCustomTable(os.TempDir(), fname, rm, wm, 50, true)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("failed reopening table: %v", err)
|
||||||
|
}
|
||||||
// The first item should be there
|
// The first item should be there
|
||||||
if _, err = f.Retrieve(0); err != nil {
|
if _, err = f.Retrieve(0); err != nil {
|
||||||
|
f.Close()
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
// The second item should be missing
|
// The second item should be missing
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue