fix static check errors in test/integration/etcd

Signed-off-by: Sakura <longfei.shang@daocloud.io>
This commit is contained in:
Sakura 2020-01-22 23:16:26 +08:00
parent a7b4459cd1
commit 8c6d7a7086
No known key found for this signature in database
GPG Key ID: 07F5F462F68548F1
2 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,6 @@ test/e2e/apps
test/e2e/autoscaling
test/e2e/instrumentation/logging/stackdriver
test/integration/deployment
test/integration/etcd
test/integration/examples
test/integration/framework
test/integration/garbagecollector

View File

@ -135,10 +135,10 @@ func StartRealMasterOrDie(t *testing.T, configFuncs ...func(*options.ServerRunOp
prepared, err := kubeAPIServer.PrepareRun()
if err != nil {
t.Fatal(err)
t.Error(err)
}
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.Reset()
serverResources, err := kubeClient.Discovery().ServerResources()
_, serverResources, err := kubeClient.Discovery().ServerGroupsAndResources()
if err != nil {
t.Fatal(err)
}