Skip to content

Commit 5ab9461

Browse files
authored
unit test fixes (crossbario#1634)
1 parent 359f868 commit 5ab9461

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autobahn/wamp/test/test_wamp_component_aio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
@pytest.mark.skipif(sys.version_info < (3, 5), reason="requires Python 3.5+")
3737
@pytest.mark.asyncio(forbid_global_loop=True)
38-
def test_asyncio_component(event_loop):
38+
async def test_asyncio_component(event_loop):
3939
orig_loop = txaio.config.loop
4040
txaio.config.loop = event_loop
4141

@@ -72,11 +72,11 @@ def done(f):
7272
txaio.config.loop = orig_loop
7373
assert comp._done_f is None
7474
f.add_done_callback(done)
75-
return finished
75+
await finished
7676

7777
@pytest.mark.skipif(sys.version_info < (3, 5), reason="requires Python 3.5+")
7878
@pytest.mark.asyncio(forbid_global_loop=True)
79-
def test_asyncio_component_404(event_loop):
79+
async def test_asyncio_component_404(event_loop):
8080
"""
8181
If something connects but then gets aborted, it should still try
8282
to re-connect (in real cases this could be e.g. wrong path,
@@ -151,4 +151,4 @@ def done(f):
151151
finished.set_result(None)
152152
txaio.config.loop = orig_loop
153153
f.add_done_callback(done)
154-
return finished
154+
await finished

0 commit comments

Comments
 (0)