From 2886f9f8a09ef5e605ca65ccf7eb276d95e5d95e Mon Sep 17 00:00:00 2001 From: Mahad Zaryab Date: Fri, 27 Dec 2024 17:21:49 -0500 Subject: [PATCH] Fix Tests Signed-off-by: Mahad Zaryab --- cmd/query/app/apiv3/grpc_handler_test.go | 4 ++-- cmd/query/app/apiv3/http_gateway_test.go | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cmd/query/app/apiv3/grpc_handler_test.go b/cmd/query/app/apiv3/grpc_handler_test.go index ea80b610718..e8410cc2174 100644 --- a/cmd/query/app/apiv3/grpc_handler_test.go +++ b/cmd/query/app/apiv3/grpc_handler_test.go @@ -62,7 +62,7 @@ func newTestServerClient(t *testing.T) *testServerClient { v1adapter.NewTraceReader(tsc.reader), &dependencyStoreMocks.Reader{}, querysvc.QueryServiceOptions{ - Adjuster: adjuster.Func(func(traces *model.Trace) { + Adjuster: adjuster.Func(func(*model.Trace) { // no-op }), }, @@ -230,7 +230,7 @@ func TestFindTracesSendError(t *testing.T) { v1adapter.NewTraceReader(reader), new(dependencyStoreMocks.Reader), querysvc.QueryServiceOptions{ - Adjuster: adjuster.Func(func(traces *model.Trace) { + Adjuster: adjuster.Func(func(*model.Trace) { // no-op }), }, diff --git a/cmd/query/app/apiv3/http_gateway_test.go b/cmd/query/app/apiv3/http_gateway_test.go index 90d00b3396a..b42d04d49e5 100644 --- a/cmd/query/app/apiv3/http_gateway_test.go +++ b/cmd/query/app/apiv3/http_gateway_test.go @@ -19,6 +19,7 @@ import ( "github.com/jaegertracing/jaeger/cmd/query/app/querysvc" "github.com/jaegertracing/jaeger/model" + "github.com/jaegertracing/jaeger/model/adjuster" "github.com/jaegertracing/jaeger/pkg/jtracer" "github.com/jaegertracing/jaeger/pkg/testutils" "github.com/jaegertracing/jaeger/storage/spanstore" @@ -37,7 +38,11 @@ func setupHTTPGatewayNoServer( q := querysvc.NewQueryService(v1adapter.NewTraceReader(gw.reader), &dependencyStoreMocks.Reader{}, - querysvc.QueryServiceOptions{}, + querysvc.QueryServiceOptions{ + Adjuster: adjuster.Func(func(*model.Trace) { + // no-op + }), + }, ) hgw := &HTTPGateway{