Skip to content

Commit a3795a3

Browse files
committed
minor change
1 parent bad42bd commit a3795a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/asyncio/retry/test_bidi_stream_retry_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ async def mock_stream_opener(*args, **kwargs):
143143
yield
144144
raise exceptions.ServiceUnavailable("Service is always down")
145145

146-
fast_retry = AsyncRetry(predicate=_is_retriable, deadline=0.01, initial=0.02)
146+
fast_retry = AsyncRetry(predicate=_is_retriable, deadline=0.1, initial=0.2)
147147
retry_manager = manager._BidiStreamRetryManager(
148148
strategy=mock_strategy, stream_opener=mock_stream_opener
149149
)
150-
with pytest.raises(exceptions.RetryError, match="Timeout of 0.0s exceeded"):
150+
with pytest.raises(exceptions.RetryError, match="Timeout of 0.1s exceeded"):
151151
await retry_manager.execute(initial_state={}, retry_policy=fast_retry)
152152

153153
mock_strategy.recover_state_on_failure.assert_called_once()

0 commit comments

Comments
 (0)