Merge pull request #109781 from wojtek-t/fix_scheduler_tests

Close events recording sink in integration tests
This commit is contained in:
Kubernetes Prow Robot 2022-05-11 08:47:14 -07:00 committed by GitHub
commit c0f48d2a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,8 +426,7 @@ func InitTestSchedulerWithOptions(
t.Fatalf("Couldn't create scheduler: %v", err)
}
stopCh := make(chan struct{})
eventBroadcaster.StartRecordingToSink(stopCh)
eventBroadcaster.StartRecordingToSink(testCtx.Ctx.Done())
return testCtx
}