Files
lightning/contrib
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
..
2019-08-20 20:14:36 +02:00
2020-09-16 06:27:12 +09:30
2021-01-29 10:29:09 +10:30
2021-01-26 15:03:35 +01:00
2021-01-26 15:03:35 +01:00