windows test /2

This commit is contained in:
marco 2024-04-05 12:22:26 +02:00
parent 4167a1d376
commit adbd55a9be

View file

@ -29,6 +29,10 @@ func TestUpdateIndex(t *testing.T) {
tmpIndex, err := os.CreateTemp("", "index.json")
require.NoError(t, err)
// close the file to avoid preventing the rename on windows
err = tmpIndex.Close()
require.NoError(t, err)
t.Cleanup(func() {
os.Remove(tmpIndex.Name())
})