Address staticcheck failures for test/e2e/lifecycle/bootstrap

Make small, non-functional changes to make the
`test/e2e/lifecycle/bootstrap` pass staticcheck.
This commit is contained in:
mattjmcnaughton 2019-10-09 23:39:41 -04:00
parent 833e8dc10b
commit b92a51285b
No known key found for this signature in database
GPG Key ID: BC530981A9A1CC9D
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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")