tests: fix other flaky `connhelper` tests

Follow up to cc68c66c95 (there were more
tests with incorrect syntax).

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
(cherry picked from commit 4a7388f0dd)
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
Laura Brehm 2024-07-24 11:52:23 +01:00
parent 956c112f16
commit 6fb9a5b264
No known key found for this signature in database
GPG Key ID: 08EC1B0491948487
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ func (mockStdoutEOF) Close() error {
func TestCloseWhileWriting(t *testing.T) { func TestCloseWhileWriting(t *testing.T) {
cmd := "sh" cmd := "sh"
args := []string{"-c", "while true; sleep 1; done"} args := []string{"-c", "while true; do sleep 1; done"}
c, err := New(context.TODO(), cmd, args...) c, err := New(context.TODO(), cmd, args...)
assert.NilError(t, err) assert.NilError(t, err)
@ -185,7 +185,7 @@ func TestCloseWhileWriting(t *testing.T) {
func TestCloseWhileReading(t *testing.T) { func TestCloseWhileReading(t *testing.T) {
cmd := "sh" cmd := "sh"
args := []string{"-c", "while true; sleep 1; done"} args := []string{"-c", "while true; do sleep 1; done"}
c, err := New(context.TODO(), cmd, args...) c, err := New(context.TODO(), cmd, args...)
assert.NilError(t, err) assert.NilError(t, err)