@@ -29,7 +29,6 @@ public static void cleanup() throws InterruptedException, JSONException {
2929
3030 @ Before
3131 public void setUp () {
32- pubnub .setOrigin ("dara24.devbuild" );
3332 pubnub .setCacheBusting (false );
3433 channelGroup = UUID .randomUUID ().toString ().substring (0 , 8 );
3534 channelNamespace = "jtest-namespace" ;
@@ -345,6 +344,7 @@ public void testRemoveGroup() throws InterruptedException, JSONException {
345344
346345 pubnub .channelGroupAddChannel (group , "ch1" , cb1 );
347346 latch1 .await (10 , TimeUnit .SECONDS );
347+ Thread .sleep (1000 );
348348
349349 pubnub .channelGroupListGroups (cb2 );
350350 latch2 .await (10 , TimeUnit .SECONDS );
@@ -355,6 +355,7 @@ public void testRemoveGroup() throws InterruptedException, JSONException {
355355
356356 pubnub .channelGroupRemoveGroup (group , cb3 );
357357 latch3 .await (10 , TimeUnit .SECONDS );
358+ Thread .sleep (1000 );
358359
359360 pubnub .channelGroupListGroups (cb4 );
360361 latch4 .await (10 , TimeUnit .SECONDS );
@@ -383,6 +384,7 @@ public void testRemoveNamespacedGroup() throws InterruptedException, JSONExcepti
383384
384385 pubnub .channelGroupAddChannel (channelNamespace + ":" + group , "ch1" , cb1 );
385386 latch1 .await (10 , TimeUnit .SECONDS );
387+ Thread .sleep (1000 );
386388
387389 pubnub .channelGroupListGroups (channelNamespace , cb2 );
388390 latch2 .await (10 , TimeUnit .SECONDS );
@@ -394,6 +396,7 @@ public void testRemoveNamespacedGroup() throws InterruptedException, JSONExcepti
394396
395397 pubnub .channelGroupRemoveGroup (channelNamespace + ":" + group , cb3 );
396398 latch3 .await (10 , TimeUnit .SECONDS );
399+ Thread .sleep (1000 );
397400
398401 pubnub .channelGroupListGroups (channelNamespace , cb4 );
399402 latch4 .await (10 , TimeUnit .SECONDS );
0 commit comments