core-lightning/contrib/pyln-testing/pyln/testing
Michael Schmoock d76ca6ed35 pyln-testing: improve wait_for a bit
This 'fixes' the `wait_for` helper by removing a pointless final
`time.sleep()`, thus potentially making the method return quicker.

The old code could have had three final states:
 - success() := True
 - Timeout and success() := True
 - Timeout and success() := False

The new code has just two final state:
 - success() := True
 - Timeout and success() := False

It ensures the final `time.sleep()` is just the right amount before timeout.
And more importantly making it more readable :-)

Changelog-None
2021-02-04 12:02:15 +10:30
..
__init__.py pyln: Bump pyln version to 0.9.3 before publishing on PyPI 2021-01-27 11:29:56 +01:00
btcproxy.py pyln: Add mypy typing exceptions for external dependencies 2020-09-28 09:19:46 +09:30
db.py chore: optimize postgres binary lookup 2020-10-27 10:40:52 +10:30
fixtures.py pyln: Catch OSError when cleaning up test directories 2021-01-29 10:29:09 +10:30
utils.py pyln-testing: improve wait_for a bit 2021-02-04 12:02:15 +10:30