Skip to content

Commit

Permalink
Added tests for access manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo committed Jan 20, 2025
1 parent a230cd3 commit de31640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jvmTest/kotlin/compubnub/chat/ChatIntegrationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class ChatIntegrationTest : BaseIntegrationTest() {

Chat.init(chatConfig, pnConfiguration).async { result: Result<Chat> ->
result.onSuccess { chat: Chat ->

}.onFailure { exception: PubNubException ->
capturedException = exception
latch.countDown()
Expand Down Expand Up @@ -96,7 +95,8 @@ class ChatIntegrationTest : BaseIntegrationTest() {

initLatchChatServer.await(3, TimeUnit.SECONDS)
var token: String? = null
chatPamServer?.pubNub?.grantToken(ttl = 1, uuids = listOf(UUIDGrant.id(id = chatClientUserId, get = true, update = true)) )?.async { result: Result<PNGrantTokenResult> ->
chatPamServer?.pubNub?.grantToken(ttl = 1, uuids = listOf(UUIDGrant.id(id = chatClientUserId, get = true, update = true)))?.async {
result: Result<PNGrantTokenResult> ->
result.onSuccess { grantTokenResult: PNGrantTokenResult ->
token = grantTokenResult.token
grantTokenLatch.countDown()
Expand Down

0 comments on commit de31640

Please sign in to comment.