Sync cache before starting scheduler test

Signed-off-by: Aldo Culquicondor <acondor@google.com>
Change-Id: I9629e1d6d510607b505b0302e23d67e0ae4a662e
This commit is contained in:
Aldo Culquicondor 2020-08-11 13:36:54 -04:00
parent eb8b5a9854
commit 24f817a487

View File

@ -480,6 +480,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.