aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repository/repo_testing.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/repository/repo_testing.go b/repository/repo_testing.go
index 09332e62..3dd702f4 100644
--- a/repository/repo_testing.go
+++ b/repository/repo_testing.go
@@ -63,6 +63,9 @@ func RepoStorageTest(t *testing.T, repo RepoStorage) {
_, err = f.Write([]byte("hello"))
require.NoError(t, err)
+ err = f.Close()
+ require.NoError(t, err)
+
// remove all
err = storage.RemoveAll(".")
require.NoError(t, err)