File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def test_basic_help():
171171 assert r .search_stdout ("options:" ) or r .search_stdout ("optional arguments:" )
172172
173173
174- def test_reckless_version (node_factory ):
174+ def test_reckless_version_listconfig (node_factory ):
175175 '''Version should be reported without loading config and should advance
176176 with lightningd.'''
177177 node = get_reckless_node (node_factory )
@@ -196,6 +196,15 @@ def test_reckless_version(node_factory):
196196 assert result ['lightning_conf' ] == str (node .lightning_dir / NETWORK / 'config' )
197197 assert result ['version' ] == version
198198
199+ # Now test via reckless-rpc plugin
200+ node .start ()
201+ listconfig = node .rpc .reckless ('listconfig' )
202+ print (listconfig )
203+ assert listconfig ['result' ]['lightning_dir' ] == str (node .lightning_dir )
204+ assert listconfig ['result' ]['lightning_conf' ] == str (node .lightning_dir / NETWORK / 'config' )
205+ assert listconfig ['result' ]['network' ] == NETWORK
206+ assert listconfig ['result' ]['version' ] == version
207+
199208
200209def test_contextual_help (node_factory ):
201210 n = get_reckless_node (node_factory )
You can’t perform that action at this time.
0 commit comments