NO-JIRA avoiding having rogue process when running test

This commit is contained in:
Clebert Suconic 2020-11-02 11:23:52 -05:00
parent c320d8bf0d
commit a2d6d1d89d
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public class QpidDispatchPeerTest extends AmqpClientTestSupport {
@Before
public void startQpidRouter() throws Exception {
ExecuteUtil.runCommand(false, "killall", "-9", "qdrouterd"); // killing any previous running qdrouterd that may have been left from the execution
URL qpidConfig = this.getClass().getClassLoader().getResource("QpidRouterPeerTest-qpidr.conf");
qpidProcess = ExecuteUtil.run(true, "qdrouterd", "-c", qpidConfig.getFile());
}