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

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
}