diff --git a/realize/cli_test.go b/realize/cli_test.go index 3f6c8cd..7fb4365 100644 --- a/realize/cli_test.go +++ b/realize/cli_test.go @@ -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") } } diff --git a/realize/utils_test.go b/realize/utils_test.go index 51b19e5..c845aa8 100644 --- a/realize/utils_test.go +++ b/realize/utils_test.go @@ -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) }