From ab2c873d089e72fb40661d3c8ec4b150acb86aec Mon Sep 17 00:00:00 2001 From: asoseil Date: Mon, 20 Nov 2017 17:01:56 +0100 Subject: [PATCH] test fixed --- realize/cli_test.go | 2 +- realize/utils_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }