Skip to content

Commit

Permalink
Fix flaky test SimpleProducerConsumerTest.testActiveAndInActiveConsum…
Browse files Browse the repository at this point in the history
…erEntryCacheBehavior (apache#10556)

Fixes apache#10555
  • Loading branch information
lhotari authored May 12, 2021
1 parent 1b43336 commit 89f99e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ public void testActiveAndInActiveConsumerEntryCacheBehavior() throws Exception {
msg = subscriber1.receive(RECEIVE_TIMEOUT_SECONDS, TimeUnit.SECONDS);

// Verify: as active-subscriber2 has not consumed messages: EntryCache must have those entries in cache
assertTrue(entryCache.getSize() != 0);
Awaitility.await().untilAsserted(() -> assertNotEquals(entryCache.getSize(), 0));

// 3.b Close subscriber2: which will trigger cache to clear the cache
subscriber2.close();
Expand Down

0 comments on commit 89f99e4

Please sign in to comment.