(node_factory, bitcoind, directory, executor, db_provider, test_base_dir)
| 2128 | |
| 2129 | @unittest.skipIf(VALGRIND, "Testing pyln doesn't exercise anything interesting in the c code.") |
| 2130 | def 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 | |
| 2147 | def test_waitblockheight(node_factory, executor, bitcoind): |
nothing calls this directly
no test coverage detected