Skip to content

Commit

Permalink
ARTEMIS-4413 Improve reliability of CheckTest.testNodeCheckTopology
Browse files Browse the repository at this point in the history
I have also made some other quick changes to make testing here easier.
  • Loading branch information
clebertsuconic committed Sep 1, 2023
1 parent 78a3e66 commit 47a3ee5
Show file tree
Hide file tree
Showing 8 changed files with 384 additions and 425 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public void setTimeout(int timeout) {
@Override
public Object execute(ActionContext context) throws Exception {
super.execute(context);

ExecutorService executor = Executors.newFixedThreadPool(1);

Future<Integer> checkTask = executor.submit(() -> {
Expand Down Expand Up @@ -141,7 +140,7 @@ public Object execute(ActionContext context) throws Exception {
} catch (TimeoutException e) {
fail("timeout");
} finally {
executor.shutdown();
executor.shutdownNow();
}

return 0;
Expand Down

0 comments on commit 47a3ee5

Please sign in to comment.