Skip to content

Commit b1e046b

Browse files
committed
chore: try adding time.sleep for sync closed connector
1 parent 7799b12 commit b1e046b

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
@@ -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)