Skip to content

Commit 8c823e1

Browse files
committed
fix: failing realtime tests
1 parent 50448b4 commit 8c823e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/realtime_client/test/socket_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ void main() {
393393
mockedSink = MockWebSocketSink();
394394

395395
when(() => mockedSocketChannel.sink).thenReturn(mockedSink);
396+
when(() => mockedSink.close()).thenAnswer((_) => Future.value());
396397
});
397398

398399
test('sends data to connection when connected', () {
@@ -575,6 +576,7 @@ void main() {
575576
mockedSink = MockWebSocketSink();
576577

577578
when(() => mockedSocketChannel.sink).thenReturn(mockedSink);
579+
when(() => mockedSink.close()).thenAnswer((_) => Future.value());
578580

579581
mockedSocket.connect();
580582
});

0 commit comments

Comments
 (0)