Skip to content

Commit d377ea8

Browse files
committed
Changes after review
1 parent 8a567f8 commit d377ea8

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

pubnub-kotlin/pubnub-kotlin-impl/src/integrationTest/kotlin/com/pubnub/api/integration/SubscribeIntegrationTests.kt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,14 +1371,13 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
13711371
val channelName02 = randomChannel()
13721372
val expectedMessage = "test_${randomValue()}"
13731373

1374-
val connectedLatch = CountDownLatch(1) // Wait for first connection
1375-
val subscriptionChangedLatch = CountDownLatch(1) // Wait for subscription changed event
1376-
val messagesLatch = CountDownLatch(2) // Wait for both listeners to receive message
1374+
val connectedLatch = CountDownLatch(1)
1375+
val subscriptionChangedLatch = CountDownLatch(1)
1376+
val messagesLatch = CountDownLatch(2)
13771377

13781378
val connectedEventCount = AtomicInteger(0)
1379-
val subscriptionChangedCount =
1380-
AtomicInteger(0) // status event emitted but no actual resubscribe when channels unchanged
1381-
val subscribeHttpRequestCount = AtomicInteger(0) // Count actual HTTP subscribe requests
1379+
val subscriptionChangedCount = AtomicInteger(0)
1380+
val subscribeHttpRequestCount = AtomicInteger(0)
13821381

13831382
// Track messages received by each listener
13841383
val listenerAMessageCount = AtomicInteger(0)
@@ -1391,7 +1390,6 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
13911390
val networkRequestDetails = logMessage.message as LogMessageContent.NetworkRequest
13921391
if (networkRequestDetails.path.contains("/v2/subscribe/")) {
13931392
subscribeHttpRequestCount.incrementAndGet()
1394-
println("HTTP Subscribe request #${subscribeHttpRequestCount.get()}: ${networkRequestDetails.path}")
13951393
}
13961394
}
13971395
}
@@ -1432,7 +1430,6 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
14321430
pubnub: PubNub,
14331431
result: PNMessageResult,
14341432
) {
1435-
println("ListenerA received: ${result.message.asString}")
14361433
listenerAMessageCount.incrementAndGet()
14371434
messagesLatch.countDown()
14381435
}
@@ -1447,7 +1444,6 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
14471444
pubnub: PubNub,
14481445
result: PNMessageResult,
14491446
) {
1450-
println("ListenerB received: ${result.message.asString}")
14511447
listenerBMessageCount.incrementAndGet()
14521448
messagesLatch.countDown()
14531449
}

0 commit comments

Comments
 (0)