diff --git a/test/integration/aaa_download_only_test.go b/test/integration/aaa_download_only_test.go index cf4abd638187..13c37e837331 100644 --- a/test/integration/aaa_download_only_test.go +++ b/test/integration/aaa_download_only_test.go @@ -158,13 +158,12 @@ func TestDownloadOnly(t *testing.T) { } }) - t.Run("minikube logs", func(t *testing.T) { + // checks if the duration of `minikube logs` takes longer than 5 seconds + t.Run("LogsDuration", func(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), Seconds(5)) defer cancel() args := []string{"logs", "-p", profile} - if _, err := Run(t, exec.CommandContext(ctx, Target(), args...)); err != nil { - t.Errorf("minikube logs failed with error: %v", err) - } + Run(t, exec.CommandContext(ctx, Target(), args...)) if err := ctx.Err(); err == context.DeadlineExceeded { t.Error("minikube logs expected to finish by 5 seconds, but took longer") }