From 0532094cf5d606ecb07398b4d7914580de4dc651 Mon Sep 17 00:00:00 2001 From: Amlandeep Bhadra Date: Fri, 29 Sep 2023 12:40:12 -0400 Subject: [PATCH] add final rmdir --- storage/pebble/bootstrap_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/pebble/bootstrap_test.go b/storage/pebble/bootstrap_test.go index 2692f2c82b6..ad2bcfba0ad 100644 --- a/storage/pebble/bootstrap_test.go +++ b/storage/pebble/bootstrap_test.go @@ -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)) }) }