Skip to content

Commit cd2930f

Browse files
committed
fix: Caught by lint
1 parent c17a577 commit cd2930f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/cliui/prompt_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os"
88
"os/exec"
99
"testing"
10-
"time"
1110

1211
"github.com/spf13/cobra"
1312
"github.com/stretchr/testify/assert"
@@ -62,7 +61,7 @@ func TestPrompt(t *testing.T) {
6261
// Copy all data written out to a buffer. When we close the ptty, we can
6362
// no longer read from the ptty.Output(), but we can read what was
6463
// written to the buffer.
65-
dataRead, doneReading := context.WithTimeout(context.Background(), time.Second*2)
64+
dataRead, doneReading := context.WithTimeout(context.Background(), testutil.WaitShort)
6665
go func() {
6766
// This will throw an error sometimes. The underlying ptty
6867
// has its own cleanup routines in t.Cleanup. Instead of

0 commit comments

Comments
 (0)