Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
noyshabtay committed Apr 7, 2024
1 parent 22e5a47 commit f9c73d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/fileutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ func TestCreateTempDir(t *testing.T) {
_, err = os.Stat(tempDir)
assert.NotErrorIs(t, err, os.ErrNotExist)

defer func() {
// Check that a timestamp can be extracted from the temp dir name
_, err = extractTimestamp(tempDir)
assert.NoError(t, err)

assert.NoError(t, os.RemoveAll(tempDir))
assert.NoError(t, os.RemoveAll(tempDir))
}()
}

0 comments on commit f9c73d3

Please sign in to comment.