chore: fix store tests on Windows (#2769)

It's just a matter of explicitly closing the database, so that TempDir.removeAll doesn't fail.
This commit is contained in:
Lincoln Nogueira
2024-01-16 02:51:26 -03:00
committed by GitHub
parent ff13d977e9
commit 5bcbbd4c52
13 changed files with 14 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ func TestMemoStore(t *testing.T) {
})
require.NoError(t, err)
require.Equal(t, 0, len(memoList))
ts.Close()
}
func TestDeleteMemoStore(t *testing.T) {
@@ -77,4 +78,5 @@ func TestDeleteMemoStore(t *testing.T) {
ID: memo.ID,
})
require.NoError(t, err)
ts.Close()
}