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