Skip to content

Commit 73641d3

Browse files
authored
Merge pull request kubernetes#91451 from gaurav1086/scheduler_test_fix_goroutine_leak
scheduler_test: fix goroutine leak
2 parents 5e8a747 + a4e5629 commit 73641d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/scheduler/scheduler_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,10 @@ func TestSchedulerNoPhantomPodAfterExpire(t *testing.T) {
544544
st.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
545545
st.RegisterPluginAsExtensions(nodeports.Name, nodeports.New, "Filter", "PreFilter"),
546546
}
547-
scheduler, bindingChan, _ := setupTestSchedulerWithOnePodOnNode(t, queuedPodStore, scache, informerFactory, stop, pod, &node, fns...)
547+
scheduler, bindingChan, errChan := setupTestSchedulerWithOnePodOnNode(t, queuedPodStore, scache, informerFactory, stop, pod, &node, fns...)
548548

549549
waitPodExpireChan := make(chan struct{})
550550
timeout := make(chan struct{})
551-
errChan := make(chan error)
552551
go func() {
553552
for {
554553
select {

0 commit comments

Comments
 (0)