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
2 changed files with 3 additions and 4 deletions

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)
}