Skip to content

Commit 93c032f

Browse files
Debug logs for MarkAllMessagesAsRead test
1 parent db9bc34 commit 93c032f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ public async Task TestMarkAllMessagesAsRead()
200200

201201
await Task.Delay(4000);
202202

203-
Assert.True(TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts()).Any(x => x.ChannelId == markTestChannel.Id && x.Count > 0));
203+
var unread = TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts());
204+
foreach (var wrapper in unread)
205+
{
206+
Console.WriteLine($"{wrapper.ChannelId}:{wrapper.Count}");
207+
}
208+
Assert.True(unread.Any(x => x.ChannelId == markTestChannel.Id && x.Count > 0));
204209

205210
TestUtils.AssertOperation(await chat.MarkAllMessagesAsRead());
206211

0 commit comments

Comments
 (0)