Skip to content

Commit 2facae2

Browse files
committed
Fix CI tests ...
that broke because of layers created by renepay Changelog-None Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
1 parent 0b0c122 commit 2facae2

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

tests/autogenerate-rpc-examples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2134,8 +2134,8 @@ def list_missing_examples():
21342134
rune_l21 = generate_runes_examples(l1, l2, l3)
21352135
generate_datastore_examples(l2)
21362136
generate_bookkeeper_examples(l2, l3, c23res2['channel_id'])
2137-
offer_l23, inv_req_l1_l22 = generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34)
21382137
generate_askrene_examples(l1, l2, l3, c12, c23_2)
2138+
offer_l23, inv_req_l1_l22 = generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34)
21392139
generate_wait_examples(l1, l2, bitcoind, executor)
21402140
address_l22 = generate_utils_examples(l1, l2, l3, l4, l5, l6, c23_2, c34_2, inv_l11, inv_l22, rune_l21, bitcoind)
21412141
generate_splice_examples(node_factory, bitcoind)

tests/test_askrene.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ def test_reserve(node_factory):
121121

122122
def test_layers(node_factory):
123123
"""Test manipulating information in layers"""
124-
# remove xpay, since it creates a layer!
125-
l1, l2, l3 = node_factory.line_graph(3, wait_for_announce=True,
126-
opts={'disable-plugin': 'cln-xpay'})
124+
# remove xpay and renepay, since they create a layer!
125+
l1, l2, l3 = node_factory.line_graph(
126+
3, wait_for_announce=True, opts={"disable-plugin": ["cln-xpay", "cln-renepay"]}
127+
)
127128

128129
assert l2.rpc.askrene_listlayers() == {'layers': []}
129130
with pytest.raises(RpcError, match="Unknown layer"):
@@ -294,8 +295,9 @@ def test_layers(node_factory):
294295

295296
def test_layer_persistence(node_factory):
296297
"""Test persistence of layers across restart"""
297-
l1, l2 = node_factory.line_graph(2, wait_for_announce=True,
298-
opts={'disable-plugin': 'cln-xpay'})
298+
l1, l2 = node_factory.line_graph(
299+
2, wait_for_announce=True, opts={"disable-plugin": ["cln-xpay", "cln-renepay"]}
300+
)
299301

300302
assert l1.rpc.askrene_listlayers() == {'layers': []}
301303
with pytest.raises(RpcError, match="Unknown layer"):

tests/test_misc.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -3620,8 +3620,8 @@ def test_datastore_escapeing(node_factory):
36203620

36213621

36223622
def test_datastore(node_factory):
3623-
# Suppress xpay, which makes a layer
3624-
l1 = node_factory.get_node(options={"disable-plugin": "cln-xpay"})
3623+
# Suppress xpay and renepay, which makes a layer
3624+
l1 = node_factory.get_node(options={"disable-plugin": ["cln-xpay", "cln-renepay"]})
36253625

36263626
# Starts empty
36273627
assert l1.rpc.listdatastore() == {'datastore': []}
@@ -3735,8 +3735,8 @@ def test_datastore(node_factory):
37353735

37363736

37373737
def test_datastore_keylist(node_factory):
3738-
# Suppress xpay, which makes a layer
3739-
l1 = node_factory.get_node(options={"disable-plugin": "cln-xpay"})
3738+
# Suppress xpay and renepay, which makes a layer
3739+
l1 = node_factory.get_node(options={"disable-plugin": ["cln-xpay", "cln-renepay"]})
37403740

37413741
# Starts empty
37423742
assert l1.rpc.listdatastore() == {'datastore': []}
@@ -3798,7 +3798,9 @@ def test_datastore_keylist(node_factory):
37983798

37993799

38003800
def test_datastoreusage(node_factory):
3801-
l1: LightningNode = node_factory.get_node(options={"disable-plugin": "cln-xpay"})
3801+
l1: LightningNode = node_factory.get_node(
3802+
options={"disable-plugin": ["cln-xpay", "cln-renepay"]}
3803+
)
38023804
assert l1.rpc.datastoreusage() == {'datastoreusage': {'key': '[]', 'total_bytes': 0}}
38033805

38043806
data = 'somedatatostoreinthedatastore' # len 29

0 commit comments

Comments
 (0)