Skip to content

Commit

Permalink
fix: failing realtime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jan 19, 2025
1 parent 50448b4 commit 8c823e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/realtime_client/test/socket_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ void main() {
mockedSink = MockWebSocketSink();

when(() => mockedSocketChannel.sink).thenReturn(mockedSink);
when(() => mockedSink.close()).thenAnswer((_) => Future.value());
});

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

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

mockedSocket.connect();
});
Expand Down

0 comments on commit 8c823e1

Please sign in to comment.