mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Merge pull request #109781 from wojtek-t/fix_scheduler_tests
Close events recording sink in integration tests
This commit is contained in:
commit
c0f48d2a2e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user