diff --git a/tests/test_cln_rs.py b/tests/test_cln_rs.py index 5c2d89108..acdde6a76 100644 --- a/tests/test_cln_rs.py +++ b/tests/test_cln_rs.py @@ -1,9 +1,11 @@ from fixtures import * # noqa: F401,F403 +from node_pb2_grpc import NodeStub from pathlib import Path from pyln.testing.utils import env, TEST_NETWORK -import subprocess +import grpc +import node_pb2 as nodepb import pytest - +import subprocess # Skip the entire module if we don't have Rust. pytestmark = pytest.mark.skipif( @@ -27,6 +29,10 @@ def test_plugin_start(node_factory): l1 = node_factory.get_node(options={"plugin": str(bin_path), 'test-option': 31337}) l2 = node_factory.get_node() + # The plugin should be in the list of active plugins + plugins = l1.rpc.plugin('list')['plugins'] + assert len([p for p in plugins if 'cln-plugin-startup' in p['name'] and p['active']]) == 1 + cfg = l1.rpc.listconfigs() p = cfg['plugins'][0] p['path'] = None # The path is host-specific, so blank it.