From 6e46fb93158166816d7f461fad232d72b9dd2201 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 14 Jan 2016 14:38:02 -0800 Subject: [PATCH] Fix test --- command/status_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command/status_test.go b/command/status_test.go index 766bf305a..461a9933e 100644 --- a/command/status_test.go +++ b/command/status_test.go @@ -26,8 +26,9 @@ func TestStatusCommand_Run(t *testing.T) { // Check for this awkward nil string, since a nil bytes.Buffer // returns this purposely, and mitchellh/cli has a nil pointer // if nothing was ever output. - if out := ui.OutputWriter.String(); out != "" { - t.Fatalf("expected empty output, got: %s", out) + exp := "No running jobs" + if out := strings.TrimSpace(ui.OutputWriter.String()); out != exp { + t.Fatalf("expected %q; got: %q", exp, out) } // Register two jobs