From aeb7646180fe7c6dc32a9f9d24203132df33f3e3 Mon Sep 17 00:00:00 2001 From: Wise-Wizard Date: Thu, 25 Jul 2024 09:36:42 +0530 Subject: [PATCH] Fix Test Signed-off-by: Wise-Wizard --- cmd/jaeger/internal/extension/jaegerquery/server.go | 2 +- cmd/jaeger/internal/extension/jaegerquery/server_test.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/jaeger/internal/extension/jaegerquery/server.go b/cmd/jaeger/internal/extension/jaegerquery/server.go index ecddd9eae5d..7fa249a976c 100644 --- a/cmd/jaeger/internal/extension/jaegerquery/server.go +++ b/cmd/jaeger/internal/extension/jaegerquery/server.go @@ -20,8 +20,8 @@ import ( "github.com/jaegertracing/jaeger/pkg/telemetery" "github.com/jaegertracing/jaeger/pkg/tenancy" "github.com/jaegertracing/jaeger/plugin/metrics/disabled" - storageMetrics "github.com/jaegertracing/jaeger/storage/spanstore/metrics" "github.com/jaegertracing/jaeger/storage/metricsstore" + storageMetrics "github.com/jaegertracing/jaeger/storage/spanstore/metrics" ) var ( diff --git a/cmd/jaeger/internal/extension/jaegerquery/server_test.go b/cmd/jaeger/internal/extension/jaegerquery/server_test.go index e51f7c697b1..986033e133f 100644 --- a/cmd/jaeger/internal/extension/jaegerquery/server_test.go +++ b/cmd/jaeger/internal/extension/jaegerquery/server_test.go @@ -15,6 +15,7 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/component/componenttest" + noopMeter "go.opentelemetry.io/otel/metric/noop" "go.uber.org/zap" "go.uber.org/zap/zaptest" @@ -186,8 +187,9 @@ func TestServerStart(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { telemetrySettings := component.TelemetrySettings{ - Logger: zaptest.NewLogger(t, zaptest.WrapOptions(zap.AddCaller())), - ReportStatus: func(*component.StatusEvent) {}, + Logger: zaptest.NewLogger(t, zaptest.WrapOptions(zap.AddCaller())), + MeterProvider: noopMeter.NewMeterProvider(), + ReportStatus: func(*component.StatusEvent) {}, } tt.config.HTTP.Endpoint = ":0" tt.config.GRPC.NetAddr.Endpoint = ":0"