From 4134c24cc94c8af96322abd8f9b7ace25f99c96f Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Thu, 12 Nov 2020 17:33:57 +0100 Subject: [PATCH] pytest: fix a probable flake on test_channel_opener --- tests/test_connection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_connection.py b/tests/test_connection.py index 79cf67638..8c96cdd25 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -2757,6 +2757,10 @@ def test_channel_opener(node_factory): # close and check for 'closer' l1.rpc.close(l2.rpc.getinfo()["id"]) + l1.daemon.wait_for_log("State changed from CHANNELD_NORMAL to") + l2.daemon.wait_for_log("State changed from CHANNELD_NORMAL to") + + # 'closer' should now be set accordingly assert(l1.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'local') assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'remote')