Skip to content

Commit

Permalink
refactor: remove redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Jan 18, 2025
1 parent 6d32551 commit 7e56b9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scheduler/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ func TestGetWaitingPod(t *testing.T) {
guestURL: test.URLTestHandle,
pod: test.PodForHandleTest,
args: []string{"test", "getWaitingPod"},
expectedWaitingPod: makeTestWaitingPod(test.PodForHandleTest, map[string]*time.Timer{}),
expectedWaitingPod: util.NewWaitingPod(test.PodForHandleTest, map[string]*time.Timer{}),
expectedStatusCode: framework.Success,
expectedStatusMsg: "",
},
Expand Down Expand Up @@ -1886,7 +1886,3 @@ func requireError(t *testing.T, err error, expectedError string) {
t.Fatalf("unexpected error: want %v, have %v", want, have)
}
}

func makeTestWaitingPod(pod *v1.Pod, plugins map[string]*time.Timer) framework.WaitingPod {
return util.NewWaitingPod(pod, plugins)
}

0 comments on commit 7e56b9a

Please sign in to comment.