Rename scheduler -> mesosScheduler in plugin_test
This commit is contained in:
		| @@ -473,7 +473,7 @@ func newLifecycleTest(t *testing.T) lifecycleTest { | |||||||
| 		), | 		), | ||||||
| 	) | 	) | ||||||
|  |  | ||||||
| 	scheduler := New(Config{ | 	mesosScheduler := New(Config{ | ||||||
| 		Executor: ei, | 		Executor: ei, | ||||||
| 		Client: client.NewOrDie(&client.Config{ | 		Client: client.NewOrDie(&client.Config{ | ||||||
| 			Host:    apiServer.server.URL, | 			Host:    apiServer.server.URL, | ||||||
| @@ -484,15 +484,15 @@ func newLifecycleTest(t *testing.T) lifecycleTest { | |||||||
| 		LookupNode: apiServer.LookupNode, | 		LookupNode: apiServer.LookupNode, | ||||||
| 	}) | 	}) | ||||||
|  |  | ||||||
| 	assert.NotNil(scheduler.client, "client is nil") | 	assert.NotNil(mesosScheduler.client, "client is nil") | ||||||
| 	assert.NotNil(scheduler.executor, "executor is nil") | 	assert.NotNil(mesosScheduler.executor, "executor is nil") | ||||||
| 	assert.NotNil(scheduler.offers, "offer registry is nil") | 	assert.NotNil(mesosScheduler.offers, "offer registry is nil") | ||||||
|  |  | ||||||
| 	// create scheduler process | 	// create scheduler process | ||||||
| 	schedulerProc := ha.New(scheduler) | 	schedulerProc := ha.New(mesosScheduler) | ||||||
|  |  | ||||||
| 	// get plugin config from it | 	// get plugin config from it | ||||||
| 	config := scheduler.NewPluginConfig( | 	config := mesosScheduler.NewPluginConfig( | ||||||
| 		schedulerProc.Terminal(), | 		schedulerProc.Terminal(), | ||||||
| 		http.DefaultServeMux, | 		http.DefaultServeMux, | ||||||
| 		&podsListWatch.ListWatch, | 		&podsListWatch.ListWatch, | ||||||
| @@ -516,7 +516,7 @@ func newLifecycleTest(t *testing.T) lifecycleTest { | |||||||
| 		eventObs:      eventObs, | 		eventObs:      eventObs, | ||||||
| 		plugin:        plugin, | 		plugin:        plugin, | ||||||
| 		podsListWatch: podsListWatch, | 		podsListWatch: podsListWatch, | ||||||
| 		scheduler:     scheduler, | 		scheduler:     mesosScheduler, | ||||||
| 		schedulerProc: schedulerProc, | 		schedulerProc: schedulerProc, | ||||||
| 		t:             t, | 		t:             t, | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dr. Stefan Schimanski
					Dr. Stefan Schimanski