Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8204c57

Browse files
committed
Simplify test, no need to output more than one line
1 parent d11a431 commit 8204c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pty/ptytest/ptytest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestPtytest(t *testing.T) {
2020
})
2121
// nolint:paralleltest
2222
t.Run("Do not hang on Intel macOS", func(t *testing.T) {
23-
cmd := exec.Command("sh", "-c", "for i in $(seq 1 1000); do echo $i; done")
23+
cmd := exec.Command("sh", "-c", "echo hi, I will cause a hang")
2424
pty := ptytest.New(t)
2525
cmd.Stdin = pty.Input()
2626
cmd.Stdout = pty.Output()

0 commit comments

Comments
 (0)