diff --git a/plugin/storage/es/spanstore/reader_test.go b/plugin/storage/es/spanstore/reader_test.go index 122b721cc3ee..159f4d51d399 100644 --- a/plugin/storage/es/spanstore/reader_test.go +++ b/plugin/storage/es/spanstore/reader_test.go @@ -844,15 +844,14 @@ func TestSpanReader_buildTagQuery(t *testing.T) { }) } - func TestSpanReader_GetEmptyIndex(t *testing.T) { - withSpanReader(func (r *spanReaderTest){ + withSpanReader(func(r *spanReaderTest) { mockSearchService(r). Return(&elastic.SearchResult{}, nil) mockMultiSearchService(r). Return(&elastic.MultiSearchResult{ - Responses: []*elastic.SearchResult{}, - }, nil) + Responses: []*elastic.SearchResult{}, + }, nil) traceQuery := &spanstore.TraceQueryParameters{ ServiceName: serviceName, diff --git a/plugin/storage/es/spanstore/service_operation_test.go b/plugin/storage/es/spanstore/service_operation_test.go index 924d051ca9c8..6b2d82499630 100644 --- a/plugin/storage/es/spanstore/service_operation_test.go +++ b/plugin/storage/es/spanstore/service_operation_test.go @@ -112,13 +112,13 @@ func TestSpanReader_GetOperations(t *testing.T) { } func TestSpanReader_GetServicesEmptyIndex(t *testing.T) { - withSpanReader(func (r *spanReaderTest){ + withSpanReader(func(r *spanReaderTest) { mockSearchService(r). Return(&elastic.SearchResult{}, nil) mockMultiSearchService(r). Return(&elastic.MultiSearchResult{ - Responses: []*elastic.SearchResult{}, - }, nil) + Responses: []*elastic.SearchResult{}, + }, nil) services, err := r.reader.GetServices() require.NoError(t, err) assert.Empty(t, services) @@ -126,13 +126,13 @@ func TestSpanReader_GetServicesEmptyIndex(t *testing.T) { } func TestSpanReader_GetOperationsEmptyIndex(t *testing.T) { - withSpanReader(func (r *spanReaderTest){ + withSpanReader(func(r *spanReaderTest) { mockSearchService(r). Return(&elastic.SearchResult{}, nil) mockMultiSearchService(r). Return(&elastic.MultiSearchResult{ - Responses: []*elastic.SearchResult{}, - }, nil) + Responses: []*elastic.SearchResult{}, + }, nil) services, err := r.reader.GetOperations("foo") require.NoError(t, err) assert.Empty(t, services)