mirror of https://github.com/docker/cli.git
tests: fix other flaky `connhelper` tests
Follow up tocc68c66c95
(there were more tests with incorrect syntax). Signed-off-by: Laura Brehm <laurabrehm@hey.com> (cherry picked from commit4a7388f0dd
) Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
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)
|
||||
|
|
Loading…
Reference in New Issue