def used_port():
    port = 8000
    while port <= 65535:
        if is_port_in_use(port):
            return port
        port += 1
 def test_is_port_in_use(self, used_port):
     assert is_port_in_use(used_port)
Exemple #3
0
 def test_node(self, lnd: Lnd):
     assert not is_port_in_use(lnd.node_port)
Exemple #4
0
 def test_grpc(self, lnd: Lnd):
     assert not is_port_in_use(lnd.grpc_port)
Exemple #5
0
 def test_rest(self, lnd: Lnd):
     assert not is_port_in_use(lnd.rest_port)