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