pytest: Fix TLV hook tests in experimental mode

I missed this test breaking with `EXPERIMENTAL_FEATURES` in #3261
This commit is contained in:
Christian Decker 2019-11-21 16:55:26 +01:00 committed by Rusty Russell
parent 3482d254e3
commit 5a233a1b27

View File

@ -535,7 +535,7 @@ def test_htlc_accepted_hook_forward_restart(node_factory, executor):
onion = json.load(open(fname)) onion = json.load(open(fname))
if EXPERIMENTAL_FEATURES: if EXPERIMENTAL_FEATURES:
assert onion['type'] == 'tlv' assert onion['type'] == 'tlv'
assert re.match(r'^020203e80401..0608................$', onion['payload']) assert re.match(r'^11020203e80401..0608................$', onion['payload'])
else: else:
assert onion['type'] == 'legacy' assert onion['type'] == 'legacy'
assert re.match(r'^0000006700000.000100000000000003e8000000..000000000000000000000000$', onion['payload']) assert re.match(r'^0000006700000.000100000000000003e8000000..000000000000000000000000$', onion['payload'])