Skip to content

Commit 32fb8a4

Browse files
Simon Vrouwerustyrussell
authored andcommitted
testing: cleanup in test_plugin_shutdown
1 parent 760c271 commit 32fb8a4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_plugin.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,9 +2537,7 @@ def test_plugin_shutdown(node_factory):
25372537

25382538
# Now, should also shutdown or timeout on finish, RPC calls then fail with error code -5
25392539
l1.rpc.plugin_start(p, dont_shutdown=True)
2540-
needle = l1.daemon.logsearch_start
25412540
l1.rpc.stop()
2542-
l1.daemon.wait_for_log(r"test_libplugin: shutdown called")
2543-
l1.daemon.logsearch_start = needle # we don't know what comes first
2544-
l1.daemon.is_in_log(r'misc_notifications.py: via lightningd shutdown, datastore failed')
2545-
l1.daemon.is_in_log(r'test_libplugin: failed to self-terminate in time, killing.')
2541+
l1.daemon.wait_for_logs(['test_libplugin: shutdown called',
2542+
'misc_notifications.py: via lightningd shutdown, datastore failed',
2543+
'test_libplugin: failed to self-terminate in time, killing.'])

0 commit comments

Comments
 (0)