Skip to content

Commit

Permalink
Increase kubectl_test timeouts
Browse files Browse the repository at this point in the history
We see random timeouts in kubectl_test in github. This was very rare
before, but since we added more jobs we see this frequently. Increase
the timeout from 10 to 30 seconds to make sure the test pass even if the
host is overloaded.

Fixes: RamenDR#997
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed Jul 20, 2023
1 parent 8b3a55c commit c2f9053
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/drenv/kubectl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

EXAMPLE_DEPLOYMENT = os.path.join("addons", "example", "deployment.yaml")

# Avoid random timeouts in github.
TIMEOUT = 30


def test_version(tmpenv):
out = kubectl.version(output="json", context=tmpenv.profile)
Expand Down Expand Up @@ -48,7 +51,7 @@ def test_rollout(tmpenv, capsys):
kubectl.rollout(
"status",
"deploy/example-deployment",
"--timeout=10s",
f"--timeout={TIMEOUT}s",
context=tmpenv.profile,
)
out, err = capsys.readouterr()
Expand All @@ -59,7 +62,7 @@ def test_wait(tmpenv, capsys):
kubectl.wait(
"deploy/example-deployment",
"--for=condition=available",
"--timeout=10s",
f"--timeout={TIMEOUT}s",
context=tmpenv.profile,
)
out, err = capsys.readouterr()
Expand Down

0 comments on commit c2f9053

Please sign in to comment.