From 3a0b1c5b1d6b23cb065e12ff12da878560fdd15c Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Wed, 27 Jan 2021 13:17:20 +0100 Subject: [PATCH] pytest: improve test_openchannel_hook_chaining The current test was not checking for the output of the first plugin in the chain. --- tests/test_plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index de86c6227..6cd3344d9 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -651,6 +651,8 @@ def test_openchannel_hook_chaining(node_factory, bitcoind): l1.rpc.fundchannel(l2.info['id'], 100005) assert l2.daemon.wait_for_log(hook_msg + "reject for a reason") + # first plugin in the chain was called + assert l2.daemon.is_in_log("accept on principle") # the third plugin must now not be called anymore assert not l2.daemon.is_in_log("reject on principle")