Skip to content

Commit 8bbf555

Browse files
committed
Fix compile error (but it's not a real test)
1 parent e167bbf commit 8bbf555

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metrics/SBOMetrics_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88

99
func TestSBOMetricTimeWindow(t *testing.T) {
1010
timest := time.Date(2025, 11, 17, 20, 34, 58, 651387237, time.UTC)
11-
sbom := NewSBOMetric(SBO_METRIC_REQ_COUNT, "aaa")
11+
metricManager := NewSBOMetricsManager()
12+
sbom := NewSBOMetric(SBO_METRIC_REQ_COUNT, "aaa", metricManager)
1213
sbom.addValue("unittest", timest, 100)
1314

1415
slog.Warn("Values", "values", sbom.Values)

0 commit comments

Comments
 (0)