Skip to content

Commit

Permalink
e2e: update slot resource
Browse files Browse the repository at this point in the history
    update slot resources

Signed-off-by: alcorj.mizar <[email protected]>
  • Loading branch information
alcorj-mizar committed Jul 2, 2020
1 parent 8d93ba2 commit d3003a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/job_scheduling.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ var _ = Describe("Job E2E Test", func() {

defer cleanupTestContext(ctx)

slot1 := v1.ResourceList{"cpu": resource.MustParse("1500m"), "memory": resource.MustParse("1224Mi")}
slot2 := v1.ResourceList{"cpu": resource.MustParse("750m"), "memory": resource.MustParse("612Mi")}
slot1 := v1.ResourceList{"cpu": resource.MustParse("2000m"), "memory": resource.MustParse("2048Mi")}
slot2 := v1.ResourceList{"cpu": resource.MustParse("1000m"), "memory": resource.MustParse("1024Mi")}
jobSpec1 := &jobSpec{
tasks: []taskSpec{
{
Expand Down Expand Up @@ -326,8 +326,6 @@ var _ = Describe("Job E2E Test", func() {
jobSpec2.queue = q3
createJob(ctx, jobSpec2)

time.Sleep(60 * time.Second)

// Ensure job is running in q3
err := waitQueueStatus(func() (bool, error) {
queue, err := ctx.vcclient.SchedulingV1beta1().Queues().Get(context.TODO(), q3, metav1.GetOptions{})
Expand Down

0 comments on commit d3003a9

Please sign in to comment.