test fixed
This commit is contained in:
parent
a320f1a035
commit
ab2c873d08
|
@ -18,7 +18,7 @@ func TestRealize_Stop(t *testing.T) {
|
|||
m.exit = make(chan os.Signal, 2)
|
||||
close(m.exit)
|
||||
_, ok := <-m.exit
|
||||
if !ok {
|
||||
if ok != false {
|
||||
t.Error("Unexpected error", "channel should be closed")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ func TestWdir(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
result := wdir()
|
||||
result := Wdir()
|
||||
if result != expected {
|
||||
t.Error("Expected", filepath.Base(expected), "instead", result)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue