From 3572d598bf4475b1ef5164c77a1d7d0006e1d350 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 4 Mar 2020 14:50:32 +1030 Subject: [PATCH] tests: fix flake in libplugin test. My test machine is fast enough that we might not have seen the plugin msg yet. Signed-off-by: Rusty Russell --- tests/test_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 806f2abfd..6351ba7f2 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -819,7 +819,7 @@ def test_libplugin(node_factory): # Test hooks and notifications l2 = node_factory.get_node() l2.connect(l1) - assert l1.daemon.is_in_log("{} peer_connected".format(l2.info["id"])) + l1.daemon.wait_for_log("{} peer_connected".format(l2.info["id"])) l1.daemon.wait_for_log("{} connected".format(l2.info["id"])) # Test RPC calls FIXME: test concurrent ones ?