Skip to content

Commit

Permalink
Updte reader tests, now expect valueCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvp8510 committed Oct 10, 2019
1 parent 260954a commit a6f289e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/storage/es/spanstore/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,15 @@ func mockMultiSearchService(r *spanReaderTest) *mock.Call {
multiSearchService.On("Index", mock.AnythingOfType("string"), mock.AnythingOfType("string"),
mock.AnythingOfType("string"), mock.AnythingOfType("string"), mock.AnythingOfType("string")).Return(multiSearchService)
r.client.On("MultiSearch").Return(multiSearchService)
return multiSearchService.On("Do", mock.AnythingOfType("*context.emptyCtx"))
return multiSearchService.On("Do", mock.AnythingOfType("*context.valueCtx"))
}

func mockArchiveMultiSearchService(r *spanReaderTest, indexName string) *mock.Call {
multiSearchService := &mocks.MultiSearchService{}
multiSearchService.On("Add", mock.Anything, mock.Anything, mock.Anything).Return(multiSearchService)
multiSearchService.On("Index", indexName).Return(multiSearchService)
r.client.On("MultiSearch").Return(multiSearchService)
return multiSearchService.On("Do", mock.AnythingOfType("*context.emptyCtx"))
return multiSearchService.On("Do", mock.AnythingOfType("*context.valueCtx"))
}

func mockSearchService(r *spanReaderTest) *mock.Call {
Expand Down

0 comments on commit a6f289e

Please sign in to comment.