From 5bf274e64a3486bba21edd9bf455089839219f25 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 14 Jan 2023 13:23:02 +0100 Subject: repo: don't forget to close a file --- repository/repo_testing.go | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit