test fixed

This commit is contained in:
asoseil 2017-11-20 17:01:56 +01:00
parent a320f1a035
commit ab2c873d08
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ func TestRealize_Stop(t *testing.T) {
m.exit = make(chan os.Signal, 2) m.exit = make(chan os.Signal, 2)
close(m.exit) close(m.exit)
_, ok := <-m.exit _, ok := <-m.exit
if !ok { if ok != false {
t.Error("Unexpected error", "channel should be closed") t.Error("Unexpected error", "channel should be closed")
} }
} }

View File

@ -58,7 +58,7 @@ func TestWdir(t *testing.T) {
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
result := wdir() result := Wdir()
if result != expected { if result != expected {
t.Error("Expected", filepath.Base(expected), "instead", result) t.Error("Expected", filepath.Base(expected), "instead", result)
} }