Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Dec 27, 2024
1 parent 1dab334 commit 2886f9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/query/app/apiv3/grpc_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
},
Expand Down Expand Up @@ -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
}),
},
Expand Down
7 changes: 6 additions & 1 deletion cmd/query/app/apiv3/http_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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{
Expand Down

0 comments on commit 2886f9f

Please sign in to comment.