Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Nov 22, 2024
1 parent 46f5feb commit ae71053
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ var _ = BeforeSuite(func() {
By("building and deploying the controller-manager")
cmd := exec.Command("make", "kind-deploy")
_, err := utils.Run(cmd)
//_, _ = fmt.Fprintf(GinkgoWriter, "%s\n", output)
Expect(err).NotTo(HaveOccurred())
cmd = exec.Command("make", "test-apply")
_, err = utils.Run(cmd)
//_, _ = fmt.Fprintf(GinkgoWriter, "%s\n", output)
Expect(err).NotTo(HaveOccurred())

By("validating that the hmc-controller and CAPI provider controllers are running and ready")
Expand Down
1 change: 0 additions & 1 deletion test/e2e/provider_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ var _ = Describe("AWS Templates", Label("provider:cloud", "provider:aws"), Order
GinkgoT().Setenv("KUBECONFIG", kubeCfgPath)
cmd := exec.Command("make", "test-apply")
_, err := utils.Run(cmd)
//_, _ = fmt.Fprintf(GinkgoWriter, "%s\n", output)
Expect(err).NotTo(HaveOccurred())
Expect(os.Unsetenv("KUBECONFIG")).To(Succeed())

Expand Down
1 change: 0 additions & 1 deletion test/e2e/provider_azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ var _ = Context("Azure Templates", Label("provider:cloud", "provider:azure"), Or
GinkgoT().Setenv("KUBECONFIG", kubeCfgPath)
cmd := exec.Command("make", "test-apply")
_, err := utils.Run(cmd)
//_, _ = fmt.Fprintf(GinkgoWriter, "%s\n", output)
Expect(err).NotTo(HaveOccurred())
Expect(os.Unsetenv("KUBECONFIG")).To(Succeed())

Expand Down
2 changes: 1 addition & 1 deletion test/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Run(cmd *exec.Cmd) ([]byte, error) {

cmd.Stdout = GinkgoWriter
cmd.Stderr = GinkgoWriter

output, err := cmd.Output()
if err != nil {
return nil, handleCmdError(err, command)
Expand Down

0 comments on commit ae71053

Please sign in to comment.