fix: tests

This commit is contained in:
Deven Joshi
2021-02-03 14:31:25 +05:30
parent 2cd5eed245
commit 4fa6581f19
2 changed files with 7 additions and 5 deletions
@@ -86,7 +86,7 @@ void main() {
testWidgets(
'StreamChatCore should disconnect on background',
(WidgetTester tester) async {
await fakeAsync((_async) {
fakeAsync((_async) {
final client = MockClient();
final clientState = MockClientState();
final channel = MockChannel();
@@ -123,6 +123,7 @@ void main() {
_async.elapse(Duration(seconds: 5));
verify(client.disconnect()).called(1);
eventStreamController.close();
});
},
);
@@ -174,6 +175,7 @@ void main() {
await untilCalled(showLocalNotificationMock(event));
verify(showLocalNotificationMock(event)).called(1);
eventStreamController.close();
},
);
}