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 12:15:11 +01:00
parent 956c112f16
commit 6fb9a5b264
@@ -155,7 +155,7 @@ func (mockStdoutEOF) Close() error {
func TestCloseWhileWriting(t *testing.T) {
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...)
assert.NilError(t, err)
@@ -185,7 +185,7 @@ func TestCloseWhileWriting(t *testing.T) {
func TestCloseWhileReading(t *testing.T) {
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...)
assert.NilError(t, err)