@@ -260,7 +260,7 @@ func (s *workflowShadowerSuite) TestShadowOptionsWithExcludeTypes() {
260260 shadower , err := NewWorkflowShadower (s .mockService , "testDomain" , options , ReplayOptions {}, nil )
261261 s .NoError (err )
262262 s .mockService .EXPECT ().
263- ScanWorkflowExecutions (gomock .Any (), gomock .Any (), gomock .Any ()).
263+ ListWorkflowExecutions (gomock .Any (), gomock .Any (), gomock .Any ()).
264264 DoAndReturn (func (ctx context.Context , request * shared.ListWorkflowExecutionsRequest , opts ... interface {}) (* shared.ListWorkflowExecutionsResponse , error ) {
265265 s .Equal (expectedQuery , * request .Query )
266266 return & shared.ListWorkflowExecutionsResponse {
@@ -280,7 +280,7 @@ func (s *workflowShadowerSuite) TestShadowWorkerExitCondition_ExpirationTime() {
280280 ExpirationInterval : expirationTime ,
281281 }
282282
283- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
283+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
284284 Executions : newTestWorkflowExecutions (totalWorkflows ),
285285 NextPageToken : nil ,
286286 }, nil ).Times (1 )
@@ -301,7 +301,7 @@ func (s *workflowShadowerSuite) TestShadowWorkerExitCondition_MaxShadowingCount(
301301 ShadowCount : maxShadowCount ,
302302 }
303303
304- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
304+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
305305 Executions : newTestWorkflowExecutions (maxShadowCount * 2 ),
306306 NextPageToken : []byte {1 , 2 , 3 },
307307 }, nil ).Times (1 )
@@ -325,7 +325,7 @@ func (s *workflowShadowerSuite) TestShadowWorker_NormalMode() {
325325 if i == numScan - 1 {
326326 scanResp .NextPageToken = nil
327327 }
328- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (scanResp , nil ).Times (1 )
328+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (scanResp , nil ).Times (1 )
329329 }
330330
331331 s .mockService .EXPECT ().GetWorkflowExecutionHistory (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.GetWorkflowExecutionHistoryResponse {
@@ -349,7 +349,7 @@ func (s *workflowShadowerSuite) TestShadowWorker_ContinuousMode() {
349349 scanResp := & shared.ListWorkflowExecutionsResponse {
350350 Executions : workflowExecutions ,
351351 }
352- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (scanResp , nil ).Times (1 )
352+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (scanResp , nil ).Times (1 )
353353 }
354354
355355 s .mockService .EXPECT ().GetWorkflowExecutionHistory (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.GetWorkflowExecutionHistoryResponse {
@@ -379,7 +379,7 @@ func (s *workflowShadowerSuite) TestShadowWorker_ContinuousMode() {
379379
380380func (s * workflowShadowerSuite ) TestShadowWorker_ReplayFailed () {
381381 successfullyReplayed := 5
382- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
382+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
383383 Executions : newTestWorkflowExecutions (successfullyReplayed * 2 ),
384384 NextPageToken : []byte {1 , 2 , 3 },
385385 }, nil ).Times (1 )
@@ -428,7 +428,7 @@ func (s *workflowShadowerSuite) TestShadowWorker_ExpectedReplayError() {
428428
429429 for _ , test := range testCases {
430430 s .T ().Run (test .msg , func (t * testing.T ) {
431- s .mockService .EXPECT ().ScanWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
431+ s .mockService .EXPECT ().ListWorkflowExecutions (gomock .Any (), gomock .Any (), callOptions ()... ).Return (& shared.ListWorkflowExecutionsResponse {
432432 Executions : newTestWorkflowExecutions (1 ),
433433 NextPageToken : nil ,
434434 }, nil ).Times (1 )
0 commit comments