From 85554257f886102e44ee1f21850ba554149a7068 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Wed, 6 Nov 2024 17:00:26 +0000 Subject: [PATCH] tests: k8s: Update image pull timeout error Currently the error we are checking for is `CreateContainerRequest timed out`, but this message doesn't always seem to be printed to our pod log. Try using a more general message that should be present more reliably. Signed-off-by: stevenhorsman --- tests/integration/kubernetes/k8s-guest-pull-image.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/kubernetes/k8s-guest-pull-image.bats b/tests/integration/kubernetes/k8s-guest-pull-image.bats index cb91158566..bdbbe40723 100644 --- a/tests/integration/kubernetes/k8s-guest-pull-image.bats +++ b/tests/integration/kubernetes/k8s-guest-pull-image.bats @@ -171,10 +171,10 @@ setup() { echo "Pod $pod_config file:" cat $pod_config - # The pod should be failed because the default timeout of CreateContainerRequest is 60s + # The pod should be failed because the image is too large to be pulled in the timeout assert_pod_fail "$pod_config" - assert_logs_contain "$node" kata "$node_start_time" \ - 'CreateContainerRequest timed out' + assert_logs_contain "$node" kata "$node_start_time" 'createContainer failed' + assert_logs_contain "$node" kata "$node_start_time" 'timeout' } @test "Test we can pull a large image inside the guest with large createcontainer timeout" {