Skip to content

Commit

Permalink
Run simple preemptor test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbacsko committed Nov 14, 2024
1 parent 8fa300f commit 9466955
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -727,4 +727,4 @@ kind-e2e: $(KIND_BIN)
e2e_test: tools
@echo "running e2e tests"
cd ./test/e2e && \
ginkgo -r $(E2E_TEST) -v -keep-going -- -yk-namespace "yunikorn" -kube-config $(KUBECONFIG)
ginkgo -r simple_preemptor -v -keep-going -- -yk-namespace "yunikorn" -kube-config $(KUBECONFIG)
4 changes: 3 additions & 1 deletion test/e2e/simple_preemptor/simple_preemptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ var _ = ginkgo.AfterSuite(func() {

var _ = ginkgo.Describe("SimplePreemptor", func() {
ginkgo.It("Verify_basic_simple_preemption", func() {
ginkgo.Skip("skip test")
// Use case: Only one pod is running and same pod has been selected as victim
// Define sleepPod
sleepPodConfigs := k8s.SleepPodConfig{Name: "sleepjob", NS: dev, Mem: sleepPodMemLimit1 * 2, Time: 600, RequiredNode: Worker1}
Expand Down Expand Up @@ -208,7 +209,8 @@ var _ = ginkgo.Describe("SimplePreemptor", func() {
// assert sleeppod4 is killed
err = kClient.WaitForPodEvent(dev, "sleepjob4", "Killing", 60*time.Second)
gomega.Ω(err).NotTo(gomega.HaveOccurred())

ginkgo.By("---- Fail on purpose ----")
gomega.Ω(true).To(gomega.BeFalse())
})

ginkgo.AfterEach(func() {
Expand Down

0 comments on commit 9466955

Please sign in to comment.