Skip to content

Commit

Permalink
GEODE-9606: Fix flaky PubSubIntegrationTest.testPatternWithoutAGlob (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeppe-pivotal authored Sep 21, 2021
1 parent 19f55ad commit cf1b35c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,12 @@ public void testPatternWithoutAGlob() {
waitFor(() -> mockSubscriber.getSubscribedChannels() == 2);

mockSubscriber.prepareMessagesReceivedLatch(1);
mockSubscriber.preparePMessagesReceivedLatch(1);
Long result = publisher.publish("salutations", "hello");

assertThat(result).isEqualTo(2);
mockSubscriber.awaitMessagesReceived();
mockSubscriber.awaitPMessagesReceived();

mockSubscriber.punsubscribe("salutations");
waitFor(() -> mockSubscriber.getSubscribedChannels() == 1);
Expand Down

0 comments on commit cf1b35c

Please sign in to comment.