File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1139,13 +1139,17 @@ async def wait_error():
11391139 reader_stream_mock_with_error = mock .Mock (ReaderStream )
11401140 reader_stream_mock_with_error .wait_error = mock .AsyncMock (side_effect = wait_error )
11411141
1142- async def wait_messages ():
1142+ async def wait_messages_with_error ():
11431143 raise test_error
11441144
1145- reader_stream_mock_with_error .wait_messages = mock .AsyncMock (side_effect = wait_messages )
1145+ reader_stream_mock_with_error .wait_messages = mock .AsyncMock (side_effect = wait_messages_with_error )
1146+
1147+ async def wait_forever ():
1148+ f = asyncio .Future ()
1149+ await f
11461150
11471151 reader_stream_with_messages = mock .Mock (ReaderStream )
1148- reader_stream_with_messages .wait_error . return_value = asyncio . Future ( )
1152+ reader_stream_with_messages .wait_error = mock . AsyncMock ( side_effect = wait_forever )
11491153 reader_stream_with_messages .wait_messages .return_value = None
11501154
11511155 stream_index = 0
You can’t perform that action at this time.
0 commit comments