diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-08-24 10:56:50 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-08-24 10:56:50 +0200 |
commit | 22551080edea429c0cdac1770fbd92f34d56edfe (patch) | |
tree | b85cebf88859aac46a7b3de980335b11f0a957b1 /client | |
parent | 806f1ca17888171403c9688dcf9b999fed205344 (diff) |
Redirect output from flag reset command
Diffstat (limited to 'client')
-rw-r--r-- | client/go/cmd/command_tester.go | 1 |
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() |