mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
test(agent/agentssh): fix flake in signal test (#10855)
This commit is contained in:
committed by
GitHub
parent
34841cf2b7
commit
dbdcad0d09
@ -216,7 +216,7 @@ func TestNewServer_Signal(t *testing.T) {
|
|||||||
}
|
}
|
||||||
require.NoError(t, sc.Err())
|
require.NoError(t, sc.Err())
|
||||||
|
|
||||||
err = sess.Signal(ssh.SIGINT)
|
err = sess.Signal(ssh.SIGKILL)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Assumption, signal propagates and the command exists, closing stdout.
|
// Assumption, signal propagates and the command exists, closing stdout.
|
||||||
@ -289,7 +289,7 @@ func TestNewServer_Signal(t *testing.T) {
|
|||||||
}
|
}
|
||||||
require.NoError(t, sc.Err())
|
require.NoError(t, sc.Err())
|
||||||
|
|
||||||
err = sess.Signal(ssh.SIGINT)
|
err = sess.Signal(ssh.SIGKILL)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Assumption, signal propagates and the command exists, closing stdout.
|
// Assumption, signal propagates and the command exists, closing stdout.
|
||||||
|
Reference in New Issue
Block a user