Skip to content

Commit 57253ef

Browse files
committed
Updates to tests due to Director changes
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 5bfc48a commit 57253ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/epp/requestcontrol/director_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,7 @@ func TestGetCandidatePodsForScheduling(t *testing.T) {
529529
ds := &mockDatastore{pods: testInput}
530530
for _, test := range tests {
531531
t.Run(test.name, func(t *testing.T) {
532-
director := NewDirectorWithConfig(ds, &mockScheduler{}, &mockSaturationDetector{}, NewConfig())
533-
534-
got := director.getCandidatePodsForScheduling(context.Background(), test.metadata)
532+
got := GetCandidatePodsForScheduling(context.Background(), ds, test.metadata)
535533

536534
diff := cmp.Diff(test.output, got, cmpopts.SortSlices(func(a, b backendmetrics.PodMetrics) bool {
537535
return a.GetPod().NamespacedName.String() < b.GetPod().NamespacedName.String()

0 commit comments

Comments
 (0)