You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/01 05:57:38 UTC

[GitHub] [pulsar] lhotari commented on a change in pull request #11176: [ Tests ] Fixed copy-paste error in the test

lhotari commented on a change in pull request #11176:
URL: https://github.com/apache/pulsar/pull/11176#discussion_r661998246



##########
File path: pulsar-client-tools-test/src/test/java/org/apache/pulsar/client/cli/PulsarClientToolTest.java
##########
@@ -183,13 +183,12 @@ public void testDurableSubscribe() throws Exception {
         String[] args = {"produce", "--messages", "Have a nice day", "-n", Integer.toString(numberOfMessages), "-r",
                 "20", "-p", "key1=value1", "-p", "key2=value2", "-k", "partition_key", topicName};
         Assert.assertEquals(pulsarClientToolProducer.run(args), 0);
-        Assert.assertFalse(future.isCompletedExceptionally());
-        future.get();
-        //wait for close
-        Awaitility.waitAtMost(Duration.ofDays(2000));
-        List<String> subscriptions = admin.topics().getSubscriptions(topicName);
-        Assert.assertNotNull(subscriptions);
-        Assert.assertEquals(subscriptions.size(), 1);
+
+        try {
+            future.get(10, TimeUnit.SECONDS);
+        } catch (Exception e) {
+            Assert.fail("consumer was unable to decrypt messages", e);

Review comment:
       "decrypt" -> "receive" since encryption isn't used in this test.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org