test(agent/agentssh): fix flake in signal test (#10855)

This commit is contained in:
Mathias Fredriksson
2023-11-24 13:47:40 +02:00
committed by GitHub
parent 34841cf2b7
commit dbdcad0d09

View File

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