Skip to content

Commit

Permalink
tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blafry committed Nov 20, 2024
1 parent 375922a commit b54490a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def k8s_server(
{
"server.enabled": True,
"networkPolicies.enabled": True,
"server.wg.publicHost": "wormhole-server-server.server.svc.cluster.local",
"server.wg.publicHost": "wormhole-server.server.svc.cluster.local",
"server.service.type": "ClusterIP",
"docker.image": wormhole_image.split(":")[0],
"docker.version": wormhole_image.split(":")[1],
Expand Down Expand Up @@ -220,7 +220,7 @@ def k8s_client(
"client.enabled": True,
"networkPolicies.enabled": True,
"client.name": "client",
"client.serverDsn": "http://wormhole-server-server.server.svc.cluster.local:8080",
"client.serverDsn": "http://wormhole-server.server.svc.cluster.local:8080",
"docker.image": wormhole_image.split(":")[0],
"docker.version": wormhole_image.split(":")[1],
"docker.wgImage": wireguard_image.split(":")[0],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,17 @@ def test_reconnecting_clients_with_keys(
@retry(tries=int(DEFAULT_RETRY_TRIES / 10), delay=DEFAULT_RETRY_DELAY)
def _wait_for_peers_paired_using_psk():
assert "Paired with server, assigned IP" in kubectl.run(
["-n", "client", "logs", "-l", "application=wormhole-client-client", "-c", "wormhole"]
["-n", "client", "logs", "-l", "application=wormhole-client", "-c", "wormhole"]
).stdout.decode()

_wait_for_peers_paired_using_psk()

kubectl.run(["-n", "client", "delete", "pod", "-l", "application=wormhole-client-client"])
kubectl.run(["-n", "client", "delete", "pod", "-l", "application=wormhole-client"])

@retry(tries=int(DEFAULT_RETRY_TRIES / 10), delay=DEFAULT_RETRY_DELAY)
def _wait_for_peers_paired_using_keys():
assert "using IP from the cache" in kubectl.run(
["-n", "client", "logs", "-l", "application=wormhole-client-client", "-c", "wormhole"]
["-n", "client", "logs", "-l", "application=wormhole-client", "-c", "wormhole"]
).stdout.decode()

_wait_for_peers_paired_using_keys()

0 comments on commit b54490a

Please sign in to comment.