From 5ae2edb54897913b6440bb69b76a7e834447c6a6 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 23 Mar 2017 11:12:06 -0400 Subject: [PATCH] Stop initiators in the end of test JIRA: https://jira.spring.io/browse/INT-4246 --- .../support/leader/LockRegistryLeaderInitiatorTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/support/leader/LockRegistryLeaderInitiatorTests.java b/spring-integration-core/src/test/java/org/springframework/integration/support/leader/LockRegistryLeaderInitiatorTests.java index 00d7ac0266..00d6f8137a 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/support/leader/LockRegistryLeaderInitiatorTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/support/leader/LockRegistryLeaderInitiatorTests.java @@ -164,6 +164,9 @@ public class LockRegistryLeaderInitiatorTests { assertThat(first.getContext().isLeader(), is(false)); assertThat(secondGranted.await(10, TimeUnit.SECONDS), is(true)); assertThat(firstRevoked.await(10, TimeUnit.SECONDS), is(true)); + + first.stop(); + second.stop(); } private static class CountingPublisher implements LeaderEventPublisher {