Stop initiators in the end of test

JIRA: https://jira.spring.io/browse/INT-4246
This commit is contained in:
Artem Bilan
2017-03-23 11:12:06 -04:00
parent d9340030bb
commit 5ae2edb548

View File

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