mirror of https://github.com/docker/cli.git
Merge pull request #5292 from laurazard/25-backport-flaky-tests
[25.0 backport] fix flaky `connhelper` tests
This commit is contained in:
commit
32b99dd6a3
|
@ -48,7 +48,7 @@ func TestEOFWithoutError(t *testing.T) {
|
|||
|
||||
func TestCloseRunningCommand(t *testing.T) {
|
||||
cmd := "sh"
|
||||
args := []string{"-c", "while true; sleep 1; done"}
|
||||
args := []string{"-c", "while true; do sleep 1; done"}
|
||||
|
||||
done := make(chan struct{})
|
||||
defer close(done)
|
||||
|
@ -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