Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch logs output to speedup minikube logs command #11274

Merged
merged 6 commits into from
May 5, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/integration/aaa_download_only_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ func TestDownloadOnly(t *testing.T) {
}
})

t.Run("minikube logs", func(t *testing.T) {
spowelljr marked this conversation as resolved.
Show resolved Hide resolved
ctx, cancel := context.WithTimeout(context.Background(), Seconds(5))
args := append([]string{"logs", "-p", profile})
if _, err := Run(t, exec.CommandContext(ctx, Target(), args...)); err != nil {
t.Errorf("minikube logs failed with error: %v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can ignore minikube logs error here...just care about the duration.

Copy link
Member Author

@spowelljr spowelljr May 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't ignore error or linting fails, I replaced with a t.Logf so it won't fail the test.

}
spowelljr marked this conversation as resolved.
Show resolved Hide resolved
})

})
}

Expand Down