Skip to content

Commit 205e92e

Browse files
committed
fix tests for channelGroupRemoveGroup()
1 parent 04e3711 commit 205e92e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

java/srcTest/com/pubnub/api/ChannelGroupTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ public void testRemoveGroup() throws InterruptedException, JSONException {
344344

345345
pubnub.channelGroupAddChannel(group, "ch1", cb1);
346346
latch1.await(10, TimeUnit.SECONDS);
347+
Thread.sleep(1000);
347348

348349
pubnub.channelGroupListGroups(cb2);
349350
latch2.await(10, TimeUnit.SECONDS);
@@ -354,6 +355,7 @@ public void testRemoveGroup() throws InterruptedException, JSONException {
354355

355356
pubnub.channelGroupRemoveGroup(group, cb3);
356357
latch3.await(10, TimeUnit.SECONDS);
358+
Thread.sleep(1000);
357359

358360
pubnub.channelGroupListGroups(cb4);
359361
latch4.await(10, TimeUnit.SECONDS);
@@ -382,6 +384,7 @@ public void testRemoveNamespacedGroup() throws InterruptedException, JSONExcepti
382384

383385
pubnub.channelGroupAddChannel(channelNamespace + ":" + group, "ch1", cb1);
384386
latch1.await(10, TimeUnit.SECONDS);
387+
Thread.sleep(1000);
385388

386389
pubnub.channelGroupListGroups(channelNamespace, cb2);
387390
latch2.await(10, TimeUnit.SECONDS);
@@ -393,6 +396,7 @@ public void testRemoveNamespacedGroup() throws InterruptedException, JSONExcepti
393396

394397
pubnub.channelGroupRemoveGroup(channelNamespace + ":" + group, cb3);
395398
latch3.await(10, TimeUnit.SECONDS);
399+
Thread.sleep(1000);
396400

397401
pubnub.channelGroupListGroups(channelNamespace, cb4);
398402
latch4.await(10, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)