diff --git a/cmd/agent/app/builder_test.go b/cmd/agent/app/builder_test.go index fa7bc913487..1e896f28481 100644 --- a/cmd/agent/app/builder_test.go +++ b/cmd/agent/app/builder_test.go @@ -223,6 +223,7 @@ func TestCreateCollectorProxy(t *testing.T) { for _, test := range tests { t.Run("", func(t *testing.T) { + t.Parallel() flags := &flag.FlagSet{} grpc.AddFlags(flags) reporter.AddFlags(flags) diff --git a/cmd/agent/app/reporter/grpc/builder_test.go b/cmd/agent/app/reporter/grpc/builder_test.go index 9eb4ebdea33..1643fb2960a 100644 --- a/cmd/agent/app/reporter/grpc/builder_test.go +++ b/cmd/agent/app/reporter/grpc/builder_test.go @@ -300,10 +300,12 @@ func TestProxyClientTLS(t *testing.T) { expectError: false, }, } - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() + for _, test := range tests { t.Run(test.name, func(t *testing.T) { + t.Parallel() + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() var opts []grpc.ServerOption if test.serverTLS.Enabled { tlsCfg, err := test.serverTLS.Config(zap.NewNop())