chore: CI fixes

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2025-04-06 12:08:43 +02:00
parent aa7157e27c
commit 9ed3769765
4 changed files with 9 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
package testutils
import (
"context"
"errors"
"io"
"log/slog"
@@ -47,7 +48,7 @@ func FuncBenchmarkCollector[C collector.Collector](b *testing.B, name string, co
}
collectors := collector.New(map[string]collector.Collector{name: c})
require.NoError(b, collectors.Build(b.Context(), logger))
require.NoError(b, collectors.Build(context.Background(), logger))
metrics := make(chan prometheus.Metric)