Skip to content

Commit 1910d02

Browse files
Unread messages test
1 parent af45cac commit 1910d02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests/ChatTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ public async Task TestGetUnreadMessagesCounts()
175175
var testChannel = TestUtils.AssertOperation(await chat.CreatePublicConversation());
176176
await testChannel.Join();
177177
await testChannel.SendText("wololo");
178+
await testChannel.SendText("wololo1");
179+
await testChannel.SendText("wololo2");
180+
await testChannel.SendText("wololo3");
178181

179-
await Task.Delay(5000);
182+
await Task.Delay(6000);
180183

181184
Assert.True(TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts(limit: 50)).Any(x => x.ChannelId == testChannel.Id && x.Count > 0));
182185

0 commit comments

Comments
 (0)