Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Aug 5, 2024
1 parent effa078 commit c91b132
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ class ChannelIntegrationTest : BaseChatIntegrationTest() {

@Test
fun join_updates_lastReadMessageTimetoken() = runTest {
val then = Instant.fromEpochSeconds(chat.pubNub.time().await().timetoken / 10000000)
val channel = chat.createChannel(randomString()).await()
val then = Clock.System.now()

val lastReadMessage = channel.join().await().membership.lastReadMessageTimetoken

assertNotNull(lastReadMessage)
assertContains(then..Clock.System.now(), Instant.fromEpochSeconds(lastReadMessage / 10000000))
}
Expand Down

0 comments on commit c91b132

Please sign in to comment.