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

Function test_unix_socket_path_length

tests/test_misc.py:2852–2866  ·  view source on GitHub ↗
(node_factory, bitcoind, directory, executor, db_provider, test_base_dir)

Source from the content-addressed store, hash-verified

2850
2851@unittest.skipIf(VALGRIND, "Testing pyln doesn't exercise anything interesting in the c code.")
2852def test_unix_socket_path_length(node_factory, bitcoind, directory, executor, db_provider, test_base_dir):
2853 lightning_dir = os.path.join(directory, "anode" + "far" * 30 + "away")
2854 os.makedirs(lightning_dir)
2855 db = db_provider.get_db(lightning_dir, "test_unix_socket_path_length", 1)
2856 db.provider = db_provider
2857
2858 l1 = LightningNode(1, lightning_dir, bitcoind, executor, VALGRIND, db=db, port=node_factory.get_unused_port())
2859
2860 # `LightningNode.start()` internally calls `LightningRpc.getinfo()` which
2861 # exercises the socket logic, and raises an issue if it fails.
2862 l1.start()
2863
2864 # Let's just call it again to make sure it really works.
2865 l1.rpc.listconfigs()
2866 l1.stop()
2867
2868
2869def test_waitblockheight(node_factory, executor, bitcoind):

Callers

nothing calls this directly

Calls 7

startMethod · 0.95
stopMethod · 0.95
LightningNodeClass · 0.90
joinMethod · 0.80
get_unused_portMethod · 0.80
listconfigsMethod · 0.80
get_dbMethod · 0.45

Tested by

no test coverage detected