Skip to content

Commit c6f0473

Browse files
committed
chore: try adding time.sleep for sync closed connector
1 parent 6dc27c3 commit c6f0473

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/test_connector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import asyncio
1818
import os
19+
import time
1920
from typing import Union
2021

2122
from aiohttp import ClientResponseError
@@ -500,6 +501,7 @@ def test_connect_closed_connector(
500501
with Connector(credentials=fake_credentials) as connector:
501502
connector._client = fake_client
502503
connector.close()
504+
time.sleep(0.1)
503505
with pytest.raises(RuntimeError) as exc_info:
504506
connector.connect(
505507
"test-project:test-region:test-instance",

0 commit comments

Comments
 (0)