Skip to content

Commit 86e378e

Browse files
committed
add stub to realtime
1 parent 8c823e1 commit 86e378e

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
@@ -394,6 +394,8 @@ void main() {
394394

395395
when(() => mockedSocketChannel.sink).thenReturn(mockedSink);
396396
when(() => mockedSink.close()).thenAnswer((_) => Future.value());
397+
when(() => mockedSink.close(any(), any()))
398+
.thenAnswer((_) => Future.value());
397399
});
398400

399401
test('sends data to connection when connected', () {

0 commit comments

Comments
 (0)