mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
flake(kubectl): fix run_kubectl_request_timeout_tests in integration test
This commit is contained in:
parent
7b802a60bd
commit
573f0d4538
@ -39,7 +39,9 @@ run_kubectl_request_timeout_tests() {
|
|||||||
|
|
||||||
## check --request-timeout on 'get pod' with --watch
|
## check --request-timeout on 'get pod' with --watch
|
||||||
output_message=$(kubectl get pod valid-pod --request-timeout=1 --watch --v=5 2>&1)
|
output_message=$(kubectl get pod valid-pod --request-timeout=1 --watch --v=5 2>&1)
|
||||||
kube::test::if_has_string "${output_message}" 'Timeout'
|
if ! kube::test::if_has_string "${output_message}" 'Timeout'; then
|
||||||
|
kube::test::if_has_string "${output_message}" 'context deadline exceeded'
|
||||||
|
fi
|
||||||
|
|
||||||
## check --request-timeout value with no time unit
|
## check --request-timeout value with no time unit
|
||||||
output_message=$(kubectl get pod valid-pod --request-timeout=1 2>&1)
|
output_message=$(kubectl get pod valid-pod --request-timeout=1 2>&1)
|
||||||
|
Loading…
Reference in New Issue
Block a user