Skip to content

Commit 1e0f669

Browse files
authored
Merge pull request docker#5291 from laurazard/fix-all-the-flaky-connhelper-tests
tests: fix other flaky `connhelper` tests
2 parents 1055536 + 4a7388f commit 1e0f669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/connhelper/commandconn/commandconn_unix_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (mockStdoutEOF) Close() error {
145145

146146
func TestCloseWhileWriting(t *testing.T) {
147147
ctx := context.TODO()
148-
c, err := New(ctx, "sh", "-c", "while true; sleep 1; done")
148+
c, err := New(ctx, "sh", "-c", "while true; do sleep 1; done")
149149
assert.NilError(t, err)
150150
cmdConn := c.(*commandConn)
151151
assert.Check(t, process.Alive(cmdConn.cmd.Process.Pid))
@@ -173,7 +173,7 @@ func TestCloseWhileWriting(t *testing.T) {
173173

174174
func TestCloseWhileReading(t *testing.T) {
175175
ctx := context.TODO()
176-
c, err := New(ctx, "sh", "-c", "while true; sleep 1; done")
176+
c, err := New(ctx, "sh", "-c", "while true; do sleep 1; done")
177177
assert.NilError(t, err)
178178
cmdConn := c.(*commandConn)
179179
assert.Check(t, process.Alive(cmdConn.cmd.Process.Pid))

0 commit comments

Comments
 (0)