mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-23 07:44:21 +01:00
pytest: fix flake in test_channel_opened_notification
We can have the message before the node ready message which line_graph waits for. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
7aa40b6bae
commit
7bb461acd8
@@ -774,6 +774,9 @@ def test_channel_opened_notification(node_factory):
|
||||
amount = 10**6
|
||||
l1, l2 = node_factory.line_graph(2, fundchannel=True, fundamount=amount,
|
||||
opts=opts)
|
||||
|
||||
# Might have already passed, so reset start.
|
||||
l2.daemon.logsearch_start = 0
|
||||
l2.daemon.wait_for_log(r"A channel was opened to us by {}, "
|
||||
"with an amount of {}*"
|
||||
.format(l1.info["id"], amount))
|
||||
|
||||
Reference in New Issue
Block a user