Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
takahiro-yamada committed Sep 25, 2024
1 parent ebf7655 commit 4f070de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kindtest/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f070de

Please sign in to comment.