Skip to content

Commit

Permalink
fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Feb 19, 2019
1 parent 3d4d3cb commit 4a5fb9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestHelperInNSList(t *testing.T) {
func TestEnsurePathNone(t *testing.T) {
var mod os.FileMode = 0744
dir := filepath.Join("/tmp", "fred")
assert.Nil(t, os.Remove(dir))
os.Remove(dir)

path := filepath.Join(dir, "duh.yml")
config.EnsurePath(path, mod)
Expand All @@ -72,7 +72,7 @@ func TestEnsurePathNone(t *testing.T) {
func TestEnsurePathNoOpt(t *testing.T) {
var mod os.FileMode = 0744
dir := filepath.Join("/tmp", "blee")
assert.Nil(t, os.Remove(dir))
os.Remove(dir)
assert.Nil(t, os.Mkdir(dir, mod))

path := filepath.Join(dir, "duh.yml")
Expand Down

0 comments on commit 4a5fb9d

Please sign in to comment.