Skip to content

Commit a4854ac

Browse files
committed
docs(CHANGES): retry_until args and monotonic clock
why: Both changes are visible to the downstream test suites that call this helper -- one adds a parameter they can use, the other stops a wall-clock step from ending a wait early. what: - Record the `args` parameter and the monotonic budget as one deliverable under `What's new`.
1 parent 8e0de0d commit a4854ac

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGES

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ $ uvx --from 'libtmux' --prerelease allow python
4545
_Notes on the upcoming release will go here._
4646
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE -->
4747

48+
### Fixes
49+
50+
- {func}`~libtmux.test.retry.retry_until` measures its budget with
51+
{func}`time.monotonic` instead of the wall clock, so an NTP correction, a
52+
container clock sync, or a VM resume can no longer cut a wait short or
53+
stretch it (#726)
54+
- {func}`~libtmux.test.retry.retry_until` accepts an `args` tuple forwarded to
55+
the predicate, so waiting on a loop variable no longer needs a closure that
56+
ruff's `B023` rejects and mypy cannot infer (#726)
57+
4858
### Documentation
4959

5060
#### Cleaner `from_env` examples (#719)

0 commit comments

Comments
 (0)