Fix race condition in tests accessing global variables in parallel

This commit is contained in:
Marcell Pünkösd
2026-06-01 16:18:05 +02:00
committed by GitHub
parent af31587841
commit 3697409701
2 changed files with 0 additions and 4 deletions
@@ -52,8 +52,6 @@ func TestSemConvServerMetrics(t *testing.T) {
for _, test := range tests {
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
var cfg otypes.OTLP
(&cfg).SetDefaults()
cfg.AddRoutersLabels = true
-2
View File
@@ -57,8 +57,6 @@ func TestObservabilityRoundTripper_metrics(t *testing.T) {
for _, test := range tests {
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
var cfg otypes.OTLP
(&cfg).SetDefaults()
cfg.AddRoutersLabels = true