Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <kerthcet@gmail.com>
  • Loading branch information
kerthcet committed Oct 12, 2022
1 parent c246e6c commit 908c33b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/e2e/schedulingaction/reclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ var _ = Describe("Reclaim E2E Test", func() {
Expect(err).NotTo(HaveOccurred(), "Error waiting for queue running")

for _, pod := range job3pods.Items {
fmt.Println(pod.Name)
err = ctx.Kubeclient.CoreV1().Pods(pod.Namespace).Delete(context.TODO(), pod.Name, metav1.DeleteOptions{})
Expect(err).NotTo(HaveOccurred(), "Failed to delete pod %s", pod.Name)
}
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/util/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package util

import (
"context"
v1 "k8s.io/api/core/v1"
"time"

v1 "k8s.io/api/core/v1"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -119,7 +120,7 @@ func SetQueueReclaimable(ctx *TestContext, queues []string, reclaimable bool) {
}

func WaitQueueStatus(condition func() (bool, error)) error {
return wait.Poll(100*time.Millisecond, FiveMinute, condition)
return wait.Poll(100*time.Millisecond, TenMinute, condition)
}

// queueClosed returns whether the Queue is closed
Expand Down
1 change: 1 addition & 0 deletions test/e2e/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var (
OneMinute = 1 * time.Minute
TwoMinute = 2 * time.Minute
FiveMinute = 5 * time.Minute
TenMinute = 10 * time.Minute
OneCPU = v1.ResourceList{"cpu": resource.MustParse("1000m")}
TwoCPU = v1.ResourceList{"cpu": resource.MustParse("2000m")}
ThreeCPU = v1.ResourceList{"cpu": resource.MustParse("3000m")}
Expand Down

0 comments on commit 908c33b

Please sign in to comment.