summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-08-24 10:56:50 +0200
committerJon Bratseth <bratseth@gmail.com>2021-08-24 10:56:50 +0200
commit22551080edea429c0cdac1770fbd92f34d56edfe (patch)
treeb85cebf88859aac46a7b3de980335b11f0a957b1 /client
parent806f1ca17888171403c9688dcf9b999fed205344 (diff)
Redirect output from flag reset command
Diffstat (limited to 'client')
-rw-r--r--client/go/cmd/command_tester.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/go/cmd/command_tester.go b/client/go/cmd/command_tester.go
index f1d4b52d0bb..40c3d04446e 100644
--- a/client/go/cmd/command_tester.go
+++ b/client/go/cmd/command_tester.go
@@ -19,6 +19,7 @@ func executeCommand(t *testing.T, client *mockHttpClient, args []string, moreArg
util.ActiveHttpClient = client
// Reset - persistent flags in Cobra persists over tests
+ util.Out = bytes.NewBufferString("")
rootCmd.SetArgs([]string{"status", "-t", ""})
rootCmd.Execute()