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:
Rusty Russell
2020-08-07 12:39:37 +09:30
committed by Christian Decker
parent 7aa40b6bae
commit 7bb461acd8

View File

@@ -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))