Skip to content

Commit

Permalink
refactor: replace BuildTestPod with NewTestPod in eligibility tests
Browse files Browse the repository at this point in the history
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
  • Loading branch information
vadasambar committed Jul 17, 2023
1 parent 62c3506 commit 6e297d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ func getTestCases(ignoreDaemonSetsUtilization bool, suffix string, now time.Time
unreadyNode := BuildTestNode("unready", 1000, 10)
SetNodeReadyState(unreadyNode, false, time.Time{})

bigPod := BuildTestPod("bigPod", 600, 0)
bigPod := NewTestPod("bigPod", WithMilliCPU(600), WithMemory(0))
bigPod.Spec.NodeName = "regular"

smallPod := BuildTestPod("smallPod", 100, 0)
smallPod := NewTestPod("smallPod", WithMilliCPU(100), WithMemory(0))
smallPod.Spec.NodeName = "regular"

dsPod := BuildDSTestPod("dsPod", 500, 0)
dsPod := NewTestPod("dsPod", WithMilliCPU(500), WithMemory(0))
dsPod.Spec.NodeName = "regular"

testCases := []testCase{
Expand Down

0 comments on commit 6e297d4

Please sign in to comment.