diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2022-10-10 21:07:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 21:07:03 +0200 |
commit | 2b67b2eedee700de6f19d377382361107918cd4d (patch) | |
tree | 03bc096929ac4f2ffd4e41dfd0dc567def8e2d9c | |
parent | 26d9e5da4de4425cbb75cd8fff4374053073b19d (diff) | |
parent | abfa755186bfef793b115d97c1fa66d0531b6631 (diff) |
Merge pull request #24381 from vespa-engine/jonmv/stabilise-new-test
Register number of parties equal to possible concurrent arrivals
-rw-r--r-- | zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorWrapperTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorWrapperTest.java b/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorWrapperTest.java index 131222e62f8..bf65045193e 100644 --- a/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorWrapperTest.java +++ b/zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorWrapperTest.java @@ -87,7 +87,9 @@ public class CuratorWrapperTest { Singleton singleton = new Singleton(curator); assertTrue(singleton.isActive); assertTrue(wrapped.exists(lockPath)); + stunning.register(); assertTrue(curator.isActive(singleton.id())); + stunning.arriveAndDeregister(); singleton.shutdown(); assertFalse(singleton.isActive); // ... and deactivated as a result of unregistering again. |