You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We consider parallel test a great speed booster when our tests run in CI environment. However, this is not always possible due to a number of constraint we have.
Suggested solution
evaluate if we can afford to enable the rule
if yes, fix all linter error to make tests pass
Additional context
The rule can be enabled by simply removing this line. You can check similar PRs to see how we enabled some other rules (ref: #1541)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
admin/cmd/pmm-admin/main_test.go:27:1: Function TestPackages missing the call to method parallel (paralleltest)
func TestPackages(t *testing.T) {
^
admin/cmd/pmm-admin/main_test.go:37:1: Function TestVersionPlain missing the call to method parallel (paralleltest)
func TestVersionPlain(t *testing.T) {
^
admin/cmd/pmm-admin/main_test.go:46:1: Function TestVersionJson missing the call to method parallel (paralleltest)
func TestVersionJson(t *testing.T) {
^
admin/commands/config_test.go:27:1: Function TestConfigCommandArgs missing the call to method parallel (paralleltest)
func TestConfigCommandArgs(t *testing.T) {
ia m usung t.Parallel() to fix the linterror for paralleltest
like
func TestListFromMySqlParams(t *testing.T) {
t.Parallel()
type testParams struct {
Params *agentpb.StartActionRequest_PTMySQLSummaryParams
to soleve lint error
agent/runner/actions/pt_mysql_summary_action_test.go:58:1: Function TestListFromMySqlParams missing the call to method parallel (paralleltest)
func TestListFromMySqlParams(t *testing.T) {
after I applied the changes I am getting this lint error
Description
We consider parallel test a great speed booster when our tests run in CI environment. However, this is not always possible due to a number of constraint we have.
Suggested solution
Additional context
The rule can be enabled by simply removing this line. You can check similar PRs to see how we enabled some other rules (ref: #1541)
Code of Conduct
The text was updated successfully, but these errors were encountered: