diff options
Diffstat (limited to 'testrig/storage.go')
-rw-r--r-- | testrig/storage.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testrig/storage.go b/testrig/storage.go index 0e91d7dbe..666256593 100644 --- a/testrig/storage.go +++ b/testrig/storage.go @@ -21,6 +21,7 @@ package testrig import ( "fmt" "os" + "path" "codeberg.org/gruf/go-store/kv" "codeberg.org/gruf/go-store/storage" @@ -94,6 +95,8 @@ func StandardStorageSetup(s *kv.KVStore, relativePath string) { // StandardStorageTeardown deletes everything in storage so that it's clean for the next test func StandardStorageTeardown(s *kv.KVStore) { + defer os.RemoveAll(path.Join(os.TempDir(), "gotosocial")) + iter, err := s.Iterator(nil) if err != nil { panic(err) |