mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
fix static check errors in test/integration/etcd
Signed-off-by: Sakura <longfei.shang@daocloud.io>
This commit is contained in:
parent
a7b4459cd1
commit
8c6d7a7086
@ -45,7 +45,6 @@ test/e2e/apps
|
|||||||
test/e2e/autoscaling
|
test/e2e/autoscaling
|
||||||
test/e2e/instrumentation/logging/stackdriver
|
test/e2e/instrumentation/logging/stackdriver
|
||||||
test/integration/deployment
|
test/integration/deployment
|
||||||
test/integration/etcd
|
|
||||||
test/integration/examples
|
test/integration/examples
|
||||||
test/integration/framework
|
test/integration/framework
|
||||||
test/integration/garbagecollector
|
test/integration/garbagecollector
|
||||||
|
@ -135,10 +135,10 @@ func StartRealMasterOrDie(t *testing.T, configFuncs ...func(*options.ServerRunOp
|
|||||||
|
|
||||||
prepared, err := kubeAPIServer.PrepareRun()
|
prepared, err := kubeAPIServer.PrepareRun()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
if err := prepared.Run(stopCh); err != nil {
|
if err := prepared.Run(stopCh); err != nil {
|
||||||
t.Fatal(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ func StartRealMasterOrDie(t *testing.T, configFuncs ...func(*options.ServerRunOp
|
|||||||
restMapper := restmapper.NewDeferredDiscoveryRESTMapper(discoveryClient)
|
restMapper := restmapper.NewDeferredDiscoveryRESTMapper(discoveryClient)
|
||||||
restMapper.Reset()
|
restMapper.Reset()
|
||||||
|
|
||||||
serverResources, err := kubeClient.Discovery().ServerResources()
|
_, serverResources, err := kubeClient.Discovery().ServerGroupsAndResources()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user