Fix staticcheck in test/integration/{examples,framework}

Part of #92402, fixes staticcheck failures SA1006, SA1019 and SA2002 in
test/integration/examples and test/integration/framework.
This commit is contained in:
tiloso
2020-12-14 21:40:05 +01:00
parent 568cd3df0b
commit 3cbdc711de
4 changed files with 4 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ func TestAggregatedAPIServer(t *testing.T) {
"--kubeconfig", wardleToKASKubeConfigFile,
})
if err := wardleCmd.Execute(); err != nil {
t.Fatal(err)
t.Error(err)
}
}()
directWardleClientConfig, err := waitForWardleRunning(t, kubeClientConfig, wardleCertDir, wardlePort)
@@ -131,7 +131,7 @@ func TestAggregatedAPIServer(t *testing.T) {
// wait for the unavailable API service to be processed with updated status
err = wait.Poll(100*time.Millisecond, 5*time.Second, func() (done bool, err error) {
_, err = kubeClient.Discovery().ServerResources()
_, _, err = kubeClient.Discovery().ServerGroupsAndResources()
hasExpectedError := checkWardleUnavailableDiscoveryError(t, err)
return hasExpectedError, nil
})