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 c17a577 commit cd2930fCopy full SHA for cd2930f
cli/cliui/prompt_test.go
@@ -7,7 +7,6 @@ import (
7
"os"
8
"os/exec"
9
"testing"
10
- "time"
11
12
"github.com/spf13/cobra"
13
"github.com/stretchr/testify/assert"
@@ -62,7 +61,7 @@ func TestPrompt(t *testing.T) {
62
61
// Copy all data written out to a buffer. When we close the ptty, we can
63
// no longer read from the ptty.Output(), but we can read what was
64
// written to the buffer.
65
- dataRead, doneReading := context.WithTimeout(context.Background(), time.Second*2)
+ dataRead, doneReading := context.WithTimeout(context.Background(), testutil.WaitShort)
66
go func() {
67
// This will throw an error sometimes. The underlying ptty
68
// has its own cleanup routines in t.Cleanup. Instead of
0 commit comments