Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Albert Teoh <albert@packsmith.io>
  • Loading branch information
Albert Teoh committed Jan 1, 2024
1 parent 7a575e3 commit 36a32c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/query/app/handler_archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package app

import (
"errors"
"fmt"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -47,8 +46,8 @@ func TestGetArchivedTrace_NotFound(t *testing.T) {
reader: mockReader,
},
} {
archiveReader := tc // capture loop var
t.Run(fmt.Sprint(archiveReader), func(t *testing.T) {
tc := tc // capture loop var
t.Run(tc.name, func(t *testing.T) {
withTestServer(func(ts *testServer) {
ts.spanReader.On("GetTrace", mock.AnythingOfType("*context.valueCtx"), mock.AnythingOfType("model.TraceID")).
Return(nil, spanstore.ErrTraceNotFound).Once()
Expand All @@ -57,7 +56,7 @@ func TestGetArchivedTrace_NotFound(t *testing.T) {
require.EqualError(t, err,
`404 error from server: {"data":null,"total":0,"limit":0,"offset":0,"errors":[{"code":404,"msg":"trace not found"}]}`+"\n",
)
}, querysvc.QueryServiceOptions{ArchiveSpanReader: archiveReader}) // nil is ok
}, querysvc.QueryServiceOptions{ArchiveSpanReader: tc.reader}) // nil is ok
})
}
}
Expand Down

0 comments on commit 36a32c9

Please sign in to comment.