mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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)
|
t.Fatalf("Couldn't create scheduler: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
stopCh := make(chan struct{})
|
eventBroadcaster.StartRecordingToSink(testCtx.Ctx.Done())
|
||||||
eventBroadcaster.StartRecordingToSink(stopCh)
|
|
||||||
|
|
||||||
return testCtx
|
return testCtx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user