Tests that the 'plugin' RPC command times out if plugin doesnt respond
(node_factory)
| 241 | |
| 242 | |
| 243 | def test_plugin_slowinit(node_factory): |
| 244 | """Tests that the 'plugin' RPC command times out if plugin doesnt respond""" |
| 245 | os.environ['SLOWINIT_TIME'] = '121' |
| 246 | n = node_factory.get_node() |
| 247 | |
| 248 | with pytest.raises(RpcError, match=': timed out before replying to init'): |
| 249 | n.rpc.plugin_start(os.path.join(os.getcwd(), "tests/plugins/slow_init.py")) |
| 250 | |
| 251 | # It's not actually configured yet, see what happens; |
| 252 | # make sure 'rescan' and 'list' controls dont crash |
| 253 | n.rpc.plugin_rescan() |
| 254 | n.rpc.plugin_list() |
| 255 | |
| 256 | |
| 257 | def test_plugin_command(node_factory): |
nothing calls this directly
no test coverage detected