Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information