fix test issue

mine
derailed 2019-02-18 23:17:58 -07:00
parent 3d4d3cba2c
commit 4a5fb9dda0
1 changed files with 2 additions and 2 deletions

View File

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