Skip to content

Commit f556c26

Browse files
committed
Close console after test
1 parent dabe9e4 commit f556c26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/clitest/clitest_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ func TestCli(t *testing.T) {
2020
cmd, config := clitest.New(t)
2121
clitest.SetupConfig(t, client, config)
2222
console := clitest.NewConsole(t, cmd)
23+
t.Cleanup(func () {
24+
console.Close()
25+
})
2326
go func() {
2427
err := cmd.Execute()
2528
require.NoError(t, err)

0 commit comments

Comments
 (0)