From 53bd48a89eceb3aa5d7e65f6c1316dc800b64694 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Thu, 29 Jun 2017 15:36:57 +0200 Subject: [PATCH] fixed unit tests --- src/show.go | 2 ++ src/show_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/show.go b/src/show.go index 72cebfd..035994f 100644 --- a/src/show.go +++ b/src/show.go @@ -82,6 +82,8 @@ func (c *ShowCommand) Run(args []string) int { secret.Data[key]) } + c.Ui.Output(output) + return 0 } diff --git a/src/show_test.go b/src/show_test.go index 5f00189..6d18803 100644 --- a/src/show_test.go +++ b/src/show_test.go @@ -65,7 +65,7 @@ func TestShow(t *testing.T) { t.Fatalf("expected error:\n%s\n\nto include: %q", actual, expectedErr) } - expectedOutput := "key: value" + expectedOutput := "key: value" if actual := ui.OutputWriter.String(); !strings.Contains(actual, expectedOutput) { t.Fatalf("expected output:\n%s\n\nto include: %q", actual, expectedOutput) }