Skip to content

Commit eef6130

Browse files
committed
remove unused var
1 parent 02197b9 commit eef6130

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/integration/functional_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,14 @@ func validateImageCommands(ctx context.Context, t *testing.T, profile string) {
255255
t.Run("ImageBuild", func(t *testing.T) {
256256
MaybeParallel(t)
257257

258-
rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pgrep", "buildkitd"))
259-
if err == nil {
258+
if _, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", "pgrep", "buildkitd")); err == nil {
260259
t.Errorf("buildkitd process is running, should not be running until `minikube image build` is ran")
261260
}
262261

263262
newImage := fmt.Sprintf("localhost/my-image:%s", profile)
264263

265264
// try to build the new image with minikube
266-
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "image", "build", "-t", newImage, filepath.Join(*testdataDir, "build")))
265+
rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "image", "build", "-t", newImage, filepath.Join(*testdataDir, "build")))
267266
if err != nil {
268267
t.Fatalf("building image with minikube: %v\n%s", err, rr.Output())
269268
}

0 commit comments

Comments
 (0)