Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jan 31, 2024
1 parent 07ae10b commit 9d6fcef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/unit/retry/test_retry_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,17 @@ def test_with_timeout(self, use_deadline, value):
on_error=mock.sentinel.on_error,
)
new_retry = (
retry_.with_timeout(value) if not use_deadline else retry_.with_deadline(value)
retry_.with_timeout(value)
if not use_deadline
else retry_.with_deadline(value)
)
assert retry_ is not new_retry
assert new_retry._timeout == value
assert new_retry.timeout == value if not use_deadline else new_retry.deadline == value
assert (
new_retry.timeout == value
if not use_deadline
else new_retry.deadline == value
)

# the rest of the attributes should remain the same
assert new_retry._predicate is retry_._predicate
Expand Down

0 comments on commit 9d6fcef

Please sign in to comment.