Use initTest for integration to start scheduler

Fix import path

Fix configurator name
This commit is contained in:
Harry Zhang
2018-03-11 18:07:10 -07:00
committed by Erick Fejta
parent 782a092e2e
commit 187c5bc91e
6 changed files with 152 additions and 184 deletions

View File

@@ -517,7 +517,7 @@ func TestMultiScheduler(t *testing.T) {
informerFactory2 := informers.NewSharedInformerFactory(context.clientSet, 0)
podInformer2 := factory.NewPodInformer(context.clientSet, 0, fooScheduler)
schedulerConfigFactory2 := CreateConfiguratorWithPodInformer(fooScheduler, clientSet2, podInformer2, informerFactory2)
schedulerConfigFactory2 := createConfiguratorWithPodInformer(fooScheduler, clientSet2, podInformer2, informerFactory2)
schedulerConfig2, err := schedulerConfigFactory2.Create()
if err != nil {
t.Errorf("Couldn't create scheduler config: %v", err)