Skip to content

Commit

Permalink
Prase peer list once
Browse files Browse the repository at this point in the history
  • Loading branch information
ggediminass committed Dec 19, 2024
1 parent 3ad96cb commit 4b4fab8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/qa/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ def test_meshnet_available_after_update():
meshnet_help_page = sh.nordvpn.meshnet("--help", _tty_out=False)
assert "Learn more: https://meshnet.nordvpn.com/" in meshnet_help_page

local_hostname = meshnet.PeerList.from_str(sh.nordvpn.mesh.peer.list()).get_this_device().hostname
parsed_peer_list = meshnet.PeerList.from_str(sh.nordvpn.mesh.peer.list())

local_hostname = parsed_peer_list.get_this_device().hostname
ssh_client.exec_command(f"nordvpn mesh peer routing allow {local_hostname}")

peer_hostname = meshnet.PeerList.from_str(sh.nordvpn.mesh.peer.list()).get_internal_peer().hostname
peer_hostname = parsed_peer_list.get_internal_peer().hostname
output = sh.nordvpn.mesh.peer.connect(peer_hostname)
assert meshnet.is_connect_successful(output, peer_hostname)

Expand Down

0 comments on commit 4b4fab8

Please sign in to comment.