Skip to content

Commit

Permalink
pytest: improve test_openchannel_hook_chaining
Browse files Browse the repository at this point in the history
The current test was not checking for the output of the first plugin in
the chain.
  • Loading branch information
m-schmoock authored and rustyrussell committed Jan 29, 2021
1 parent 67f2939 commit 3a0b1c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 3a0b1c5

Please sign in to comment.