Skip to content

Commit

Permalink
Revert "fixup pyln-testing: in wait_for_logs an attempt to fix race c…
Browse files Browse the repository at this point in the history
…ondition"

This reverts commit 9fcc7e8.
  • Loading branch information
SimonVrouwe committed Feb 22, 2022
1 parent d0dc92a commit 414de25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ def wait_for_logs(self, regexs, timeout=TIMEOUT):

with self.logs_cond:
if pos >= len(self.logs):
# pickup any last lines, before we declare dead
if not self.logs_cond.wait(1) and not self.running:
if not self.running:
raise ValueError('Process died while waiting for logs')
self.logs_cond.wait(1)
continue

for r in exs.copy():
Expand Down

0 comments on commit 414de25

Please sign in to comment.