Skip to content

Commit

Permalink
pytest: Fix TLV hook tests in experimental mode
Browse files Browse the repository at this point in the history
I missed this test breaking with `EXPERIMENTAL_FEATURES` in ElementsProject#3261
  • Loading branch information
cdecker committed Nov 21, 2019
1 parent e88e096 commit 1c385a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def test_htlc_accepted_hook_forward_restart(node_factory, executor):
onion = json.load(open(fname))
if EXPERIMENTAL_FEATURES:
assert onion['type'] == 'tlv'
assert re.match(r'^020203e80401..0608................$', onion['payload'])
assert re.match(r'^11020203e80401..0608................$', onion['payload'])
else:
assert onion['type'] == 'legacy'
assert re.match(r'^0000006700000.000100000000000003e8000000..000000000000000000000000$', onion['payload'])
Expand Down

0 comments on commit 1c385a2

Please sign in to comment.