MCPcopy Create free account
hub / github.com/ElementsProject/lightning / wait_for_event

Function wait_for_event

tests/test_plugin.py:873–876  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

871
872 # a helper that gives us the next channel_state_changed log entry
873 def wait_for_event(node):
874 msg = node.daemon.wait_for_log("plugin-misc_notifications.py: channel_state_changed.*new_state.*")
875 event = ast.literal_eval(re.findall(".*({.*}).*", msg)[0])
876 return event
877
878 # check channel 'opener' and 'closer' within this testcase ...
879 assert(l1.rpc.listpeerchannels()['channels'][0]['opener'] == 'local')

Calls 1

wait_for_logMethod · 0.80

Tested by

no test coverage detected