From 7e89f5751d6d488ed214fb95334d022da60d0da3 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Sun, 13 Dec 2020 00:45:00 +0100 Subject: [PATCH] monitor: test main function --- monitor/test_monitor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitor/test_monitor.py b/monitor/test_monitor.py index 0774c61..9cff5de 100644 --- a/monitor/test_monitor.py +++ b/monitor/test_monitor.py @@ -14,3 +14,9 @@ def test_monitor_starts(node_factory): # Then statically l1.daemon.opts["plugin"] = plugin_path l1.start() + + +def test_monitor(node_factory): + pluginopt = {'plugin': plugin_path} + l1, l2 = node_factory.line_graph(2, opts=pluginopt) + assert l1.rpc.monitor()