diff --git a/testing/auth.go b/testing/auth.go index c17a131539..b587b8e469 100644 --- a/testing/auth.go +++ b/testing/auth.go @@ -97,6 +97,7 @@ func AuthorizationService( continue } t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/bucket_service.go b/testing/bucket_service.go index 62f12ce5a8..f8ef201141 100644 --- a/testing/bucket_service.go +++ b/testing/bucket_service.go @@ -115,6 +115,7 @@ func BucketService( continue } t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/checks.go b/testing/checks.go index f7cb581a5e..61eb0a8103 100644 --- a/testing/checks.go +++ b/testing/checks.go @@ -207,6 +207,7 @@ func CheckService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/dashboards.go b/testing/dashboards.go index 1a827ec6dc..da29473a17 100644 --- a/testing/dashboards.go +++ b/testing/dashboards.go @@ -93,6 +93,7 @@ func DashboardService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/dbrp_mapping_v2.go b/testing/dbrp_mapping_v2.go index dd7851c683..ff4f3311bc 100644 --- a/testing/dbrp_mapping_v2.go +++ b/testing/dbrp_mapping_v2.go @@ -80,6 +80,7 @@ func DBRPMappingServiceV2( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/keyvalue_log.go b/testing/keyvalue_log.go index 2507d266cd..5266f8fcf3 100644 --- a/testing/keyvalue_log.go +++ b/testing/keyvalue_log.go @@ -56,6 +56,7 @@ func KeyValueLog( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/kv.go b/testing/kv.go index df78209f85..e15f447e70 100644 --- a/testing/kv.go +++ b/testing/kv.go @@ -76,6 +76,7 @@ func KVStore( for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/label_service.go b/testing/label_service.go index 92c36ffb4c..733f9ea633 100644 --- a/testing/label_service.go +++ b/testing/label_service.go @@ -82,6 +82,7 @@ func LabelService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/notification_endpoint.go b/testing/notification_endpoint.go index ddc855b396..ffd5ee865a 100644 --- a/testing/notification_endpoint.go +++ b/testing/notification_endpoint.go @@ -75,6 +75,7 @@ func NotificationEndpointService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/notification_rule.go b/testing/notification_rule.go index 43cf1ca407..c4db726efa 100644 --- a/testing/notification_rule.go +++ b/testing/notification_rule.go @@ -72,6 +72,7 @@ func NotificationRuleStore( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/organization_service.go b/testing/organization_service.go index 2a5b86d4c6..d634eca82f 100644 --- a/testing/organization_service.go +++ b/testing/organization_service.go @@ -85,6 +85,7 @@ func OrganizationService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/passwords.go b/testing/passwords.go index 421c2b2860..236c7a4d7d 100644 --- a/testing/passwords.go +++ b/testing/passwords.go @@ -39,6 +39,7 @@ func PasswordsService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/scraper_target.go b/testing/scraper_target.go index 715b793365..40e4d36ac2 100644 --- a/testing/scraper_target.go +++ b/testing/scraper_target.go @@ -106,6 +106,7 @@ func ScraperService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/secret.go b/testing/secret.go index 95567d29dc..76094b9745 100644 --- a/testing/secret.go +++ b/testing/secret.go @@ -72,6 +72,7 @@ func SecretService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/session.go b/testing/session.go index 4ef139c168..50f21fc3ba 100644 --- a/testing/session.go +++ b/testing/session.go @@ -77,6 +77,7 @@ func SessionService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/telegraf.go b/testing/telegraf.go index e54b00221f..bb52b9401f 100644 --- a/testing/telegraf.go +++ b/testing/telegraf.go @@ -71,6 +71,7 @@ func TelegrafConfigStore( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/user_resource_mapping_service.go b/testing/user_resource_mapping_service.go index ce4d927fb5..39dc608610 100644 --- a/testing/user_resource_mapping_service.go +++ b/testing/user_resource_mapping_service.go @@ -74,6 +74,7 @@ func UserResourceMappingService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/user_service.go b/testing/user_service.go index a0909613ad..77af80475c 100644 --- a/testing/user_service.go +++ b/testing/user_service.go @@ -85,6 +85,7 @@ func UserService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) }) diff --git a/testing/variable.go b/testing/variable.go index c8cf1b6488..267d5f0295 100644 --- a/testing/variable.go +++ b/testing/variable.go @@ -78,6 +78,7 @@ func VariableService( } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + tt := tt t.Parallel() tt.fn(init, t) })