Fix build error in integration test

This commit is contained in:
Daniel Smith
2014-10-07 13:10:58 -07:00
parent a21cef0157
commit cf203f1304
2 changed files with 7 additions and 1 deletions

View File

@@ -136,7 +136,12 @@ func startComponents(manifestURL string) (apiServerURL string) {
handler.delegate = mux
// Scheduler
scheduler.New((&factory.ConfigFactory{cl}).Create()).Run()
schedulerConfigFactory := &factory.ConfigFactory{cl}
schedulerConfig, err := schedulerConfigFactory.Create()
if err != nil {
glog.Fatalf("Unable to construct scheduler config: %v", err)
}
scheduler.New(schedulerConfig).Run()
endpoints := service.NewEndpointController(cl)
go util.Forever(func() { endpoints.SyncServiceEndpoints() }, time.Second*10)