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

Function test_notimestamp_logging

tests/test_misc.py:3847–3854  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

3845
3846
3847def test_notimestamp_logging(node_factory):
3848 l1 = node_factory.get_node(start=False)
3849 # Make sure this is specified *before* other options!
3850 l1.daemon.early_opts.insert(0, '--log-timestamps=false')
3851 l1.start()
3852 assert l1.daemon.logs[0].startswith("lightningd-1 INFO")
3853
3854 assert l1.rpc.listconfigs()['configs']['log-timestamps']['value_bool'] is False
3855
3856
3857def test_getlog(node_factory):

Callers

nothing calls this directly

Calls 4

listconfigsMethod · 0.80
get_nodeMethod · 0.45
insertMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected