Skip to content

Commit 3c2e4ba

Browse files
committed
clear
1 parent 202e79e commit 3c2e4ba

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/unit/test_client_timeouts.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ def mock_request(*_args: Any, **kwargs: Any) -> Response:
150150
]
151151

152152

153-
# This test will probably need to be reworked or skipped when switching to `impit`.
154-
# Without the mock library, it's difficult to reproduce, maybe with monkeypatch?
155153
@pytest.mark.parametrize(
156154
('client_type', 'method', 'expected_timeout', 'kwargs'),
157155
_timeout_params,
@@ -173,8 +171,6 @@ def test_specific_timeouts_for_specific_endpoints_sync(
173171
assert patch_request[0] == expected_timeout
174172

175173

176-
# This test will probably need to be reworked or skipped when switching to `impit`.
177-
# Without the mock library, it's difficult to reproduce, maybe with monkeypatch?
178174
@pytest.mark.parametrize(
179175
('client_type', 'method', 'expected_timeout', 'kwargs'),
180176
_timeout_params,

tests/unit/test_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ def _streaming_log_handler(_request: Request) -> Response:
115115
"""Handler for streaming log requests."""
116116

117117
def generate_logs() -> Iterator[bytes]:
118-
for chunk in _MOCKED_ACTOR_LOGS: # noqa: UP028
118+
for chunk in _MOCKED_ACTOR_LOGS:
119119
yield chunk
120+
time.sleep(0.01)
120121

121122
total_size = sum(len(chunk) for chunk in _MOCKED_ACTOR_LOGS)
122123

0 commit comments

Comments
 (0)