From 7bb461acd8346184ace8d7291e3aa254d474ecb8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 7 Aug 2020 12:39:37 +0930 Subject: [PATCH] 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 --- tests/test_plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index a1830c9a7..ae6eecee2 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -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))