Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/unit/V1/client/test_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async def check_token_callback_with_queue(request: Request, **kwargs) -> Respons
async def mock_send_handling_redirects(self, *args: Any, **kwargs: Any) -> Response:
# simulate network delay so the context switches
# random delay to make sure that requests are not executed in order
await sleep(0.1 * random.random())
await sleep(random.random())
return await AsyncClient._send_handling_redirects(self, *args, **kwargs)

httpx_mock.add_callback(auth_callback, url=auth_url, is_reusable=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/client/test_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async def check_token_callback_with_queue(request: Request, **kwargs) -> Respons
async def mock_send_handling_redirects(self, *args: Any, **kwargs: Any) -> Response:
# simulate network delay so the context switches
# random delay to make sure that requests are not executed in order
await sleep(0.1 * random.random())
await sleep(random.random())
return await AsyncClient._send_handling_redirects(self, *args, **kwargs)

httpx_mock.add_callback(auth_callback, url=auth_url, is_reusable=True)
Expand Down
Loading