Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Oct 30, 2024
1 parent 3be1ad5 commit c13c2ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion plugin/storage/es/spanstore/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"go.opentelemetry.io/otel/sdk/trace/tracetest"
"go.opentelemetry.io/otel/trace"
"go.uber.org/zap"
"go.uber.org/zap/zaptest"

"github.com/jaegertracing/jaeger/internal/metricstest"
"github.com/jaegertracing/jaeger/model"
Expand Down Expand Up @@ -167,7 +168,9 @@ func TestNewSpanReader(t *testing.T) {
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
reader := NewSpanReader(test.params)
params := test.params
params.Logger = zaptest.NewLogger(t)
reader := NewSpanReader(params)
require.NotNil(t, reader)
assert.Equal(t, test.maxSpanAge, reader.maxSpanAge)
})
Expand Down
8 changes: 3 additions & 5 deletions plugin/storage/es/spanstore/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,10 @@ func TestSpanWriter_WriteSpan(t *testing.T) {
expectedLogs []string
}{
{
caption: "span insertion error",

caption: "span insertion error",
serviceIndexExists: false,

expectedError: "",
expectedLogs: []string{},
expectedError: "",
expectedLogs: []string{"Wrote span to ES index"},
},
}
for _, tc := range testCases {
Expand Down

0 comments on commit c13c2ae

Please sign in to comment.