Skip to content

Commit 9c09a08

Browse files
committed
Make test parallel
1 parent 843dd21 commit 9c09a08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/cliui/prompt_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func TestPrompt(t *testing.T) {
5353
})
5454

5555
t.Run("Skip", func(t *testing.T) {
56+
t.Parallel()
5657
ptty := ptytest.New(t)
5758
var buf bytes.Buffer
5859

@@ -89,7 +90,7 @@ func TestPrompt(t *testing.T) {
8990
// Wait for the IO copy to finish
9091
<-dataRead.Done()
9192
// Timeout error means the output was hanging
92-
require.ErrorIs(t, dataRead.Err(), context.Canceled, "should be cancelled")
93+
require.ErrorIs(t, dataRead.Err(), context.Canceled, "should be canceled")
9394
require.Len(t, buf.Bytes(), 0, "expect no output")
9495
})
9596
t.Run("JSON", func(t *testing.T) {

0 commit comments

Comments
 (0)