Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Jul 1, 2024
1 parent 45bb130 commit 0926663
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@ func TestInitCommand(t *testing.T) {
err = os.Mkdir(dir, 0755)
assert.Nil(t, err)

// Clean up
err = f.Close()
assert.Nil(t, err)

err = cleanDirectory(tempDir)
assert.Nil(t, err)

_, err = os.Stat(file)
assert.NotNil(t, err)
_, err = os.Stat(dir)
assert.NotNil(t, err)

// Clean up
err = f.Close()
assert.Nil(t, err)
})

t.Run("readDirectories returns all subdirectories", func(t *testing.T) {
Expand Down

0 comments on commit 0926663

Please sign in to comment.