windows test /2
This commit is contained in:
parent
4167a1d376
commit
adbd55a9be
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue