Skip to content

Commit

Permalink
put nodeName n3 in method BuildPod
Browse files Browse the repository at this point in the history
Signed-off-by: chenfengyu <[email protected]>
  • Loading branch information
ycfnana committed Jul 15, 2023
1 parent d43ec94 commit 3b15d21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/actions/allocate/allocate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,8 @@ func TestAllocatedWithTerminatingPod(t *testing.T) {
// case2 pod solve case
// p3 releasing failed and p4 will be scheduled n4

case2Pod3 := util.BuildPod("c2", "p3", "", v1.PodRunning, util.BuildResourceListWithGPU("2", "4G", "3"), "pg3", make(map[string]string), make(map[string]string))
case2Pod3 := util.BuildPod("c2", "p3", "n3", v1.PodRunning, util.BuildResourceListWithGPU("2", "4G", "3"), "pg3", make(map[string]string), make(map[string]string))
case2Pod3.CreationTimestamp = metav1.Time{Time: time.Now().Add(-20 * time.Minute)}
case2Pod3.Spec.NodeName = "n3"
case2Pod3.DeletionTimestamp = &metav1.Time{Time: time.Now().Add(-10 * time.Minute)}
case2Pod4 := util.BuildPod("c2", "p4", "", v1.PodPending, util.BuildResourceListWithGPU("2", "4G", "2"), "pg4", make(map[string]string), make(map[string]string))
tests := []struct {
Expand Down

0 comments on commit 3b15d21

Please sign in to comment.