You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2023/06/06 15:36:26 UTC
[pulsar] branch branch-2.10 updated: Backport test for #20326 to Java 8
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 6506d6a0acd Backport test for #20326 to Java 8
6506d6a0acd is described below
commit 6506d6a0acd45561303a0a382a1b0f488b8d853b
Author: Lari Hotari <lh...@apache.org>
AuthorDate: Tue Jun 6 18:34:18 2023 +0300
Backport test for #20326 to Java 8
---
.../src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java
index 9a468b5229b..436232ac100 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java
@@ -939,7 +939,7 @@ public class AdminApiTest extends MockedPulsarServiceBaseTest {
// Force to create a topic
publishMessagesOnPersistentTopic("persistent://prop-xyz/ns1/" + topicName, 0);
assertEquals(admin.topics().getList("prop-xyz/ns1"),
- List.of("persistent://prop-xyz/ns1/" + topicName));
+ Collections.singletonList("persistent://prop-xyz/ns1/" + topicName));
// create consumer and subscription
@Cleanup
@@ -963,7 +963,7 @@ public class AdminApiTest extends MockedPulsarServiceBaseTest {
.subscriptionName(subName)
.subscriptionType(SubscriptionType.Exclusive).subscribe();
- assertEquals(admin.topics().getSubscriptions(persistentTopicName), List.of(subName));
+ assertEquals(admin.topics().getSubscriptions(persistentTopicName), Collections.singletonList(subName));
publishMessagesOnPersistentTopic("persistent://prop-xyz/ns1/" + topicName, 100);
TimeUnit.SECONDS.sleep(2);