From a1094b59a1c8d77fac28e763937494946bb8d0f0 Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Wed, 15 May 2019 15:06:36 -0700 Subject: [PATCH] Fixed flaky test testActiveSubscriptionWithCache --- .../apache/pulsar/broker/service/PersistentTopicE2ETest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentTopicE2ETest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentTopicE2ETest.java index 38fec896f5420..2747a8e727d2c 100644 --- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentTopicE2ETest.java +++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentTopicE2ETest.java @@ -299,8 +299,6 @@ public void testActiveSubscriptionWithCache() throws Exception { assertNotNull(curosr); // (4.2) Validate: validate cursor name assertEquals(subName, curosr.getName()); - // (4.3) Validate: entryCache should have cached messages - assertTrue(entryCache.getSize() != 0); /************* Validation on empty active-cursor **************/ // (5) Close consumer: which (1)removes activeConsumer and (2)clears the entry-cache