Merge pull request #93893 from alculquicondor/fix-scheduler-test

Sync cache before starting scheduler test
This commit is contained in:
Kubernetes Prow Robot 2020-08-11 15:31:46 -07:00 committed by GitHub
commit 4750523bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,6 +522,7 @@ func TestSchedulerMultipleProfilesScheduling(t *testing.T) {
// Run scheduler.
informerFactory.Start(ctx.Done())
informerFactory.WaitForCacheSync(ctx.Done())
go sched.Run(ctx)
// Send pods to be scheduled.