mirror of https://github.com/docker/cli.git
Merge pull request #5290 from laurazard/fix-flaxy-connhelper-test
Fix flaky `TestCloseRunningCommand` test
This commit is contained in:
commit
1055536c5c
|
@ -48,7 +48,7 @@ func TestCloseRunningCommand(t *testing.T) {
|
||||||
defer close(done)
|
defer close(done)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
c, err := New(ctx, "sh", "-c", "while true; sleep 1; done")
|
c, err := New(ctx, "sh", "-c", "while true; do sleep 1; done")
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
cmdConn := c.(*commandConn)
|
cmdConn := c.(*commandConn)
|
||||||
assert.Check(t, process.Alive(cmdConn.cmd.Process.Pid))
|
assert.Check(t, process.Alive(cmdConn.cmd.Process.Pid))
|
||||||
|
|
Loading…
Reference in New Issue