From b92a51285b766b66a9e4aa12571cf4a634b4043f Mon Sep 17 00:00:00 2001 From: mattjmcnaughton Date: Wed, 9 Oct 2019 23:39:41 -0400 Subject: [PATCH] Address staticcheck failures for test/e2e/lifecycle/bootstrap Make small, non-functional changes to make the `test/e2e/lifecycle/bootstrap` pass staticcheck. --- hack/.staticcheck_failures | 1 - test/e2e/lifecycle/bootstrap/bootstrap_signer.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index 4e60c07d633e..c4cf3952eea0 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -82,7 +82,6 @@ test/e2e/common test/e2e/instrumentation/logging/stackdriver test/e2e/instrumentation/monitoring test/e2e/lifecycle -test/e2e/lifecycle/bootstrap test/e2e/manifest test/e2e/network test/e2e/storage diff --git a/test/e2e/lifecycle/bootstrap/bootstrap_signer.go b/test/e2e/lifecycle/bootstrap/bootstrap_signer.go index e6c9f4e4b293..d79917402036 100644 --- a/test/e2e/lifecycle/bootstrap/bootstrap_signer.go +++ b/test/e2e/lifecycle/bootstrap/bootstrap_signer.go @@ -68,7 +68,8 @@ var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() { tokenId, err := GenerateTokenId() framework.ExpectNoError(err) secret := newTokenSecret(tokenId, "tokenSecret") - secret, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret) + _, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret) + framework.ExpectNoError(err) secretNeedClean = bootstrapapi.BootstrapTokenSecretPrefix + tokenId ginkgo.By("wait for the bootstrap token secret be signed")