Skip to content

Commit 8d6b178

Browse files
Use t.Fatal on error
1 parent b8872cb commit 8d6b178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/multinetwork_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func multinetworkValidateStart(ctx context.Context, t *testing.T, profile string
177177
args := []string{"start", "-p", profile, "--alsologtostderr", "-v=5"}
178178
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
179179
if err != nil {
180-
t.Errorf("failed to start minikube with args: %q : %v", rr.Command(), err)
180+
t.Fatalf("failed to start minikube with args: %q : %v", rr.Command(), err)
181181
}
182182

183183
if KicDriver() {
@@ -209,7 +209,7 @@ func multinetworkValidateDelete(ctx context.Context, t *testing.T, profile strin
209209
args := []string{"delete", "-p", profile, "--alsologtostderr", "-v=5"}
210210
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
211211
if err != nil {
212-
t.Errorf("failed to delete minikube with args: %q : %v", rr.Command(), err)
212+
t.Fatalf("failed to delete minikube with args: %q : %v", rr.Command(), err)
213213
}
214214
}
215215

0 commit comments

Comments
 (0)