Skip to content

Commit 91dfe35

Browse files
zeevdrclaude
andcommitted
style(retry): shorten test comments to fit line limit
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5abb2c1 commit 91dfe35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/tests/test_retry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_deadline_clips_sleep():
150150
slept: list[float] = []
151151

152152
with patch("opendecree._retry.time.sleep", side_effect=lambda s: slept.append(s)):
153-
# monotonic calls: [deadline_start=0.0, loop-top-0=0.0, remaining-check=0.05, loop-top-1=0.05]
153+
# monotonic: [deadline=0.0, loop-top-0=0.0, remaining=0.05, loop-top-1=0.05]
154154
with patch("opendecree._retry.time.monotonic", side_effect=[0.0, 0.0, 0.05, 0.05]):
155155
result = with_retry(RetryConfig(max_attempts=3, total_timeout=0.1), fn)
156156

@@ -179,7 +179,7 @@ def test_deadline_already_passed_before_second_attempt():
179179
fn = MagicMock(side_effect=[err, "ok"])
180180

181181
with patch("opendecree._retry.time.sleep"):
182-
# monotonic calls: [deadline_start=0.0, loop-top-0=0.0, remaining=0.05 (ok, sleep), loop-top-1=0.2 (over)]
182+
# monotonic: [deadline=0.0, loop-top-0=0.0, remaining=0.05 (ok), loop-top-1=0.2 (over)]
183183
with patch("opendecree._retry.time.monotonic", side_effect=[0.0, 0.0, 0.05, 0.2]):
184184
with pytest.raises(grpc.RpcError):
185185
with_retry(RetryConfig(max_attempts=3, total_timeout=0.1), fn)

0 commit comments

Comments
 (0)