Skip to content

Commit

Permalink
feat(#703): raise client unit test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidiert committed Jan 14, 2025
1 parent ce99da7 commit 5dd4be5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/tests/unit/test_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_a_create_client(operator: AClusterManager):
"gefyraclients.gefyra.dev/client-a",
"jsonpath=.state=WAITING",
namespace="gefyra",
timeout=20,
timeout=60,
)
assert gclient.state is GefyraClientState.WAITING

Expand All @@ -29,15 +29,15 @@ def test_b_get_client(operator: AClusterManager):
from gefyra.api.clients import get_client

gclient = get_client("client-a", kubeconfig=operator.kubeconfig)
retries = 10
retries = 20
counter = 0
try:
assert gclient.state is GefyraClientState.WAITING
except AssertionError as e:
if counter >= retries:
raise e
counter += 1
sleep(2)
sleep(4)

assert gclient.provider_parameter is None
assert gclient.provider_config is None
Expand All @@ -63,6 +63,6 @@ def test_d_delete_client(operator: AClusterManager):
from gefyra.api.clients import delete_client

delete_client("client-f", kubeconfig=operator.kubeconfig)
sleep(2)
sleep(5)
with pytest.raises(RuntimeError):
k3d.kubectl(["-n", "gefyra", "get", "gefyraclients.gefyra.dev", "client-f"])

0 comments on commit 5dd4be5

Please sign in to comment.