mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Rename scheduler -> mesosScheduler in plugin_test
This commit is contained in:
parent
01a97ebc14
commit
5db45baa8f
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user