From e57142677fbcc572e0636218706e92615907359e Mon Sep 17 00:00:00 2001 From: Pavol Loffay Date: Tue, 14 Nov 2017 17:18:45 +0100 Subject: [PATCH] Fix fmt Signed-off-by: Pavol Loffay --- plugin/storage/es/spanstore/reader_test.go | 7 +++---- .../storage/es/spanstore/service_operation_test.go | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) 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)