Skip to content

Commit 9db63f4

Browse files
committed
Fix failing tests
1 parent 9e5a95a commit 9db63f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_tcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,9 +2406,9 @@ def wrapper(sock):
24062406
try:
24072407
meth(sock)
24082408
except Exception as ex:
2409-
future.set_exception(ex)
2409+
self.loop.call_soon_threadsafe(future.set_exception, ex)
24102410
else:
2411-
future.set_result(None)
2411+
self.loop.call_soon_threadsafe(future.set_result, None)
24122412
return wrapper
24132413

24142414
async def client(addr):

0 commit comments

Comments
 (0)