Skip to content

Commit

Permalink
add final rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
koko1123 committed Sep 29, 2023
1 parent 47f4ad9 commit 0532094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/pebble/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ func TestRegisterBootstrap_IndexCheckpointFile_CorruptedCheckpointFile(t *testin
fileToDelete := path.Join(dir, fmt.Sprintf("%v.%03d", checkpointFileName, 2))
err := os.RemoveAll(fileToDelete)
require.NoError(t, err)
pb, _ := createPebbleForTest(t)
pb, dbDir := createPebbleForTest(t)
bootstrap, err := NewRegisterBootstrap(pb, checkpointFileName, rootHeight, log)
require.NoError(t, err)
err = bootstrap.IndexCheckpointFile(context.Background())
require.ErrorIs(t, err, os.ErrNotExist)
require.NoError(t, os.RemoveAll(dbDir))
})
}

Expand Down

0 comments on commit 0532094

Please sign in to comment.