From 57891d957b3392438e85333412f544168d02b038 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 20 Dec 2024 18:52:28 +0000 Subject: [PATCH] test/e2e: Swap some `Fatal` for `Error` If we just hit timeout whilst waiting for pods to get to into the expected state, then `Error` instead of `Fatal` as we don't want to skip the logging and cleanup. Signed-off-by: stevenhorsman --- src/cloud-api-adaptor/test/e2e/assessment_runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cloud-api-adaptor/test/e2e/assessment_runner.go b/src/cloud-api-adaptor/test/e2e/assessment_runner.go index 97281237f..4b6b56b8f 100644 --- a/src/cloud-api-adaptor/test/e2e/assessment_runner.go +++ b/src/cloud-api-adaptor/test/e2e/assessment_runner.go @@ -285,11 +285,11 @@ func (tc *TestCase) Run() { //Added logs for debugging nightly tests clientset, err := kubernetes.NewForConfig(client.RESTConfig()) if err != nil { - t.Fatal(err) + t.Error(err) } pod, err := clientset.CoreV1().Pods(tc.pod.Namespace).Get(ctx, tc.pod.Name, metav1.GetOptions{}) if err != nil { - t.Fatal(err) + t.Error(err) } t.Logf("Expected Pod State: %v", tc.podState) yamlData, err := yaml.Marshal(pod.Status) @@ -304,7 +304,7 @@ func (tc *TestCase) Run() { t.Log(podLogString) t.Logf("===================\n") } - t.Fatal(err) + t.Error(err) } } }