From 4f070de6ae2416e81d83f603a24648e10d75e56c Mon Sep 17 00:00:00 2001 From: takahiro-yamada Date: Wed, 25 Sep 2024 07:56:53 +0000 Subject: [PATCH] Fix test --- kindtest/runner_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kindtest/runner_test.go b/kindtest/runner_test.go index 93e155a..5a8176b 100644 --- a/kindtest/runner_test.go +++ b/kindtest/runner_test.go @@ -135,8 +135,8 @@ func testRunner() { By("trying to evict the pod") _, stderr, err := kubectl("evict", "-n", repoRunner1NS, assignedPod.Name) Expect(err).Should(HaveOccurred()) - // The error message should be: "Error: Cannot evict pod as it would violate the pod's disruption budget." - Expect(string(stderr)).Should(ContainSubstring("Error: Cannot evict pod as it would violate the pod's disruption budget.")) + // The error message should be: "Error: pod $podName Cannot evict pod as it would violate the pod's disruption budget." + Expect(string(stderr)).Should(ContainSubstring("Error: pod " + assignedPod.Name + " Cannot evict pod as it would violate the pod's disruption budget.")) By("confirming the pod terminating") deletedAt := waitRunnerPodTerminating(assignedPod.Namespace, assignedPod.Name)