mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
pytest: test binding lightningd to a UNIX domain socket.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
e843e138fe
commit
740f4314ea
@ -566,6 +566,7 @@ def test_io_logging(node_factory, executor):
|
||||
assert any(l['type'] == 'IO_IN' for l in peerlog)
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_address(node_factory):
|
||||
if DEVELOPER:
|
||||
opts = {'dev-allow-localhost': None}
|
||||
@ -587,6 +588,14 @@ def test_address(node_factory):
|
||||
assert bind[0]['address'] == '127.0.0.1'
|
||||
assert int(bind[0]['port']) == l1.port
|
||||
|
||||
# Now test UNIX domain binding.
|
||||
l1.stop()
|
||||
l1.daemon.opts['bind-addr'] = os.path.join(l1.daemon.lightning_dir, "sock")
|
||||
l1.start()
|
||||
|
||||
l2 = node_factory.get_node()
|
||||
l2.rpc.connect(l1.info['id'], l1.daemon.opts['bind-addr'])
|
||||
|
||||
|
||||
def test_listconfigs(node_factory, bitcoind):
|
||||
l1 = node_factory.get_node()
|
||||
|
Loading…
Reference in New Issue
Block a user