File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -200,14 +200,10 @@ public async Task TestMarkAllMessagesAsRead()
200200
201201 await Task . Delay ( 4000 ) ;
202202
203- var unread = TestUtils . AssertOperation ( await chat . GetUnreadMessagesCounts ( ) ) ;
204- foreach ( var wrapper in unread )
205- {
206- Console . WriteLine ( $ "{ wrapper . ChannelId } :{ wrapper . Count } ") ;
207- }
203+ var unread = TestUtils . AssertOperation ( await chat . GetUnreadMessagesCounts ( filter : $ "channel.id LIKE \" { markTestChannel . Id } \" ") ) ;
208204 Assert . True ( unread . Any ( x => x . ChannelId == markTestChannel . Id && x . Count > 0 ) ) ;
209205
210- TestUtils . AssertOperation ( await chat . MarkAllMessagesAsRead ( ) ) ;
206+ TestUtils . AssertOperation ( await chat . MarkAllMessagesAsRead ( filter : $ "channel.id LIKE \" { markTestChannel . Id } \" " ) ) ;
211207
212208 await Task . Delay ( 7000 ) ;
213209
@@ -248,7 +244,7 @@ public async Task TestReadReceipts()
248244
249245 await Task . Delay ( 5000 ) ;
250246
251- await chat . MarkAllMessagesAsRead ( ) ;
247+ await chat . MarkAllMessagesAsRead ( filter : $ "channel.id LIKE \" { channel . Id } \" " ) ;
252248 var receipt = receiptReset . WaitOne ( 15000 ) ;
253249 Assert . True ( receipt ) ;
254250 }
You can’t perform that action at this time.
0 commit comments