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

Function test_unix_socket_path_length

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

Source from the content-addressed store, hash-verified

2128
2129@unittest.skipIf(VALGRIND, "Testing pyln doesn't exercise anything interesting in the c code.")
2130def test_unix_socket_path_length(node_factory, bitcoind, directory, executor, db_provider, test_base_dir):
2131 lightning_dir = os.path.join(directory, "anode" + "far" * 30 + "away")
2132 os.makedirs(lightning_dir)
2133 db = db_provider.get_db(lightning_dir, "test_unix_socket_path_length", 1)
2134 db.provider = db_provider
2135
2136 l1 = LightningNode(1, lightning_dir, bitcoind, executor, VALGRIND, db=db, port=reserve())
2137
2138 # `LightningNode.start()` internally calls `LightningRpc.getinfo()` which
2139 # exercises the socket logic, and raises an issue if it fails.
2140 l1.start()
2141
2142 # Let's just call it again to make sure it really works.
2143 l1.rpc.listconfigs()
2144 l1.stop()
2145
2146
2147def test_waitblockheight(node_factory, executor, bitcoind):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected