Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Aug 2, 2024
1 parent fd33e50 commit 96e69f0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class ChatIntegrationTest : BaseChatIntegrationTest() {

// send messages with user mentions
channel01.sendText(text = message, mentionedUsers = messageMentionedUsers).await()
delayInMillis(1000)

// when
val currentUserMentionsResult: GetCurrentUserMentionsResult = chat.getCurrentUserMentions().await()
Expand All @@ -437,7 +438,6 @@ class ChatIntegrationTest : BaseChatIntegrationTest() {
assertEquals(1, currentUserMentionsResult.enhancedMentionsData.size)
assertEquals(userId, userMentionData.userId)
assertEquals(channelId01, userMentionData.channelId)
assertTrue(userMentionData.event.payload is EventContent.Mention)
assertEquals(message, userMentionData.message?.content?.text)

// remove messages
Expand Down Expand Up @@ -465,7 +465,6 @@ class ChatIntegrationTest : BaseChatIntegrationTest() {
assertEquals(userId, userMentionData.userId)
assertEquals(true, userMentionData.parentChannelId.contains(CHANNEL_ID_OF_PARENT_MESSAGE_PREFIX))
assertEquals(true, userMentionData.threadChannelId.contains(THREAD_CHANNEL_ID_PREFIX))
assertTrue(userMentionData.event.payload is EventContent.Mention)
assertEquals(message, userMentionData.message?.content?.text)

// remove messages
Expand Down

0 comments on commit 96e69f0

Please sign in to comment.