Skip to content

Commit 7799b12

Browse files
committed
chore: add await in aync connector test
1 parent ad46fd7 commit 7799b12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/test_connector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ async def test_connect_async_closed_connector(
480480
) as connector:
481481
connector._client = fake_client
482482
await connector.close_async()
483+
# wait for close to complete
484+
await asyncio.sleep(0.1)
483485
with pytest.raises(RuntimeError) as exc_info:
484486
await connector.connect_async(
485487
"test-project:test-region:test-instance",

0 commit comments

Comments
 (0)