From eef613064ef0e0397b0225b8693412177876a138 Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Fri, 1 Oct 2021 21:30:00 +0000 Subject: [PATCH] remove unused var --- test/integration/functional_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/functional_test.go b/test/integration/functional_test.go index 6d389fa290..ff9f00e7c9 100644 --- a/test/integration/functional_test.go +++ b/test/integration/functional_test.go @@ -255,15 +255,14 @@ func validateImageCommands(ctx context.Context, t *testing.T, profile string) { t.Run("ImageBuild", func(t *testing.T) { MaybeParallel(t) - rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pgrep", "buildkitd")) - if err == nil { + if _, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pgrep", "buildkitd")); err == nil { t.Errorf("buildkitd process is running, should not be running until `minikube image build` is ran") } newImage := fmt.Sprintf("localhost/my-image:%s", profile) // try to build the new image with minikube - rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "image", "build", "-t", newImage, filepath.Join(*testdataDir, "build"))) + rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "image", "build", "-t", newImage, filepath.Join(*testdataDir, "build"))) if err != nil { t.Fatalf("building image with minikube: %v\n%s", err, rr.Output()) }