We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f6ec6 commit 7b6af6eCopy full SHA for 7b6af6e
cli/templatecreate_test.go
@@ -1,6 +1,7 @@
1
package cli_test
2
3
import (
4
+ "io"
5
"os"
6
"testing"
7
@@ -218,10 +219,8 @@ func TestTemplateCreate(t *testing.T) {
218
219
}
220
cmd, root := clitest.New(t, args...)
221
clitest.SetupConfig(t, client, root)
- pty := ptytest.New(t)
222
- cmd.SetIn(pty.Input())
223
- cmd.SetOut(pty.Output())
224
- cmd.SetErr(pty.Output())
+ cmd.SetOut(io.Discard)
+ cmd.SetErr(io.Discard)
225
226
return cmd.Execute()
227
@@ -233,9 +232,8 @@ func TestTemplateCreate(t *testing.T) {
233
232
234
235
236
237
238
239
240
241
0 commit comments