Skip to content

Commit

Permalink
Fix DockerTests for dockerUbi (#91901) (#91907)
Browse files Browse the repository at this point in the history
kill command was not available. bash -c with kill should be used
relates #91704
closes #91874

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
pgomulka and elasticmachine committed Nov 24, 2022
1 parent 28fcdb9 commit 5a78124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ public void test600Interrupt() {
final List<ProcessInfo> infos = ProcessInfo.getProcessInfo(sh, "java");
final int maxPid = infos.stream().map(i -> i.pid()).max(Integer::compareTo).get();

sh.run("kill -int " + maxPid); // send ctrl+c to all java processes
sh.run("bash -c 'kill -int " + maxPid + "'"); // send ctrl+c to all java processes
final Result containerLogsAfter = getContainerLogs();

assertThat("Container logs should contain stopping ...", containerLogsAfter.stdout(), containsString("stopping ..."));
Expand Down

0 comments on commit 5a78124

Please sign in to comment.