From dc007653d498c62864ca1e003ee1133fc3147b30 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Thu, 24 Mar 2022 22:55:38 +0530 Subject: [PATCH] test(llc): fix queryChannels test Signed-off-by: xsahil03x --- .../stream_chat/test/src/client/client_test.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/stream_chat/test/src/client/client_test.dart b/packages/stream_chat/test/src/client/client_test.dart index b59937bb4..5ec2bfebb 100644 --- a/packages/stream_chat/test/src/client/client_test.dart +++ b/packages/stream_chat/test/src/client/client_test.dart @@ -645,8 +645,8 @@ void main() { when(() => persistence.getChannelThreads(any())) .thenAnswer((_) async => {}); - when(() => persistence.updateMessages(any(), any())) - .thenAnswer((_) => Future.value()); + when(() => persistence.updateChannelThreads(any(), any())) + .thenAnswer((_) async => {}); when(() => persistence.getChannelStateByCid(any(), messagePagination: any(named: 'messagePagination'), pinnedMessagePagination: @@ -692,7 +692,7 @@ void main() { verify(() => persistence.getChannelThreads(any())) .called((persistentChannelStates + channelStates).length); - verify(() => persistence.updateMessages(any(), any())) + verify(() => persistence.updateChannelThreads(any(), any())) .called((persistentChannelStates + channelStates).length); verify( () => persistence.getChannelStateByCid(any(), @@ -733,8 +733,8 @@ void main() { when(() => persistence.getChannelThreads(any())) .thenAnswer((_) async => {}); - when(() => persistence.updateMessages(any(), any())) - .thenAnswer((_) => Future.value()); + when(() => persistence.updateChannelThreads(any(), any())) + .thenAnswer((_) async => {}); when(() => persistence.getChannelStateByCid(any(), messagePagination: any(named: 'messagePagination'), pinnedMessagePagination: @@ -775,7 +775,7 @@ void main() { verify(() => persistence.getChannelThreads(any())) .called(persistentChannelStates.length); - verify(() => persistence.updateMessages(any(), any())) + verify(() => persistence.updateChannelThreads(any(), any())) .called(persistentChannelStates.length); verify( () => persistence.getChannelStateByCid(any(),