Skip to content

Commit c5e2ba0

Browse files
committed
py(test): Do not assume an absolute path for the trmp hook plugin
1 parent f52c510 commit c5e2ba0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/gl-client-py/tests/test_plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from pyln import grpc as clnpb
44
import pytest
55
import secrets
6+
from pathlib import Path
7+
8+
trmp_plugin_path = Path(__file__).parent / "plugins" / "trmp_htlc_hook.py"
69

710

811
def test_big_size_requests(clients):
@@ -56,7 +59,7 @@ def test_trampoline_pay(bitcoind, clients, node_factory):
5659
# Fund channel between nodes.
5760
l2 = node_factory.get_node(
5861
options={
59-
"plugin": "/repo/libs/gl-client-py/tests/plugins/trmp_htlc_hook.py",
62+
"plugin": trmp_plugin_path,
6063
}
6164
)
6265
n1.connect_peer(l2.info["id"], f"localhost:{l2.port}")
@@ -158,7 +161,7 @@ def test_trampoline_multi_htlc(bitcoind, clients, node_factory):
158161
# Fund channel between nodes.
159162
l2 = node_factory.get_node(
160163
options={
161-
"plugin": "/repo/libs/gl-client-py/tests/plugins/trmp_htlc_hook.py",
164+
"plugin": trmp_plugin_path,
162165
}
163166
)
164167
n1.connect_peer(l2.info["id"], f"localhost:{l2.port}")

0 commit comments

Comments
 (0)