Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Jan 10, 2025
1 parent ecffcaf commit 2d88822
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/jvmTest/kotlin/compubnub/chat/ChatIntegrationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,22 @@ class ChatIntegrationTest : BaseIntegrationTest() {
val serverChat = Chat.init(ChatConfiguration(), configPamServer).await()
val token = serverChat.pubNub.grantToken(
ttl = 1,
channels = listOf(ChannelGrant.name(get = true, name = "anyChannelForNow")),
uuids = listOf(UUIDGrant.id(id = clientUserId, get = true, update = true)) // this is important
channels = listOf(
ChannelGrant.name(get = true, name = "anyChannelForNow"),
ChannelGrant.name(
name = "PN_PRV.$clientUserId.mute1",
read = true,
)
),
uuids = listOf(
UUIDGrant.id(id = clientUserId, get = true, update = true),
UUIDGrant.id(
id = "PN_PRV.$clientUserId.mute1",
update = true,
delete = true,
get = true,
)
) // this is important
).await().token

val configPamClient: PNConfiguration = PNConfiguration.builder(UserId(clientUserId), Keys.pamSubKey) {
Expand Down

0 comments on commit 2d88822

Please sign in to comment.