Merge pull request #5290 from laurazard/fix-flaxy-connhelper-test

Fix flaky `TestCloseRunningCommand` test
This commit is contained in:
Laura Brehm 2024-07-24 11:03:24 +01:00 committed by GitHub
commit 1055536c5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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))