From 0b2aec1832c61b1c5d1bd07bbf3fd56c71d5bf58 Mon Sep 17 00:00:00 2001 From: Yu-Lin Chen Date: Tue, 17 Oct 2023 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?[YUNIKORN-2043]=20SimplePreemptor=20e2e=20test?= =?UTF-8?q?=20doesn=E2=80=99t=20really=20wait=20for=20pod=E2=80=99s=20Kill?= =?UTF-8?q?ing=20event=20(#689)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #689 Signed-off-by: PoAn Yang --- test/e2e/simple_preemptor/simple_preemptor_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/simple_preemptor/simple_preemptor_test.go b/test/e2e/simple_preemptor/simple_preemptor_test.go index 18da4178d..69fdef397 100644 --- a/test/e2e/simple_preemptor/simple_preemptor_test.go +++ b/test/e2e/simple_preemptor/simple_preemptor_test.go @@ -21,6 +21,7 @@ package simple_preemptor_test import ( "fmt" "strings" + "time" "github.com/onsi/ginkgo/v2" "github.com/onsi/gomega" @@ -166,7 +167,7 @@ var _ = ginkgo.Describe("SimplePreemptor", func() { gomega.Ω(err).NotTo(gomega.HaveOccurred()) } // assert sleeppod2 is killed - err := kClient.WaitForPodEvent(dev, "sleepjob2", "Killing", 120) + err := kClient.WaitForPodEvent(dev, "sleepjob2", "Killing", 60*time.Second) gomega.Ω(err).NotTo(gomega.HaveOccurred()) }) @@ -212,7 +213,7 @@ var _ = ginkgo.Describe("SimplePreemptor", func() { gomega.Ω(err).NotTo(gomega.HaveOccurred()) // assert sleeppod4 is killed - err = kClient.WaitForPodEvent(dev, "sleepjob4", "Killing", 1200) + err = kClient.WaitForPodEvent(dev, "sleepjob4", "Killing", 60*time.Second) gomega.Ω(err).NotTo(gomega.HaveOccurred()) })