diff --git a/internal/workflow/processing_test.go b/internal/workflow/processing_test.go index 5985172d..94e7fe13 100644 --- a/internal/workflow/processing_test.go +++ b/internal/workflow/processing_test.go @@ -265,7 +265,7 @@ func (s *ProcessingWorkflowTestSuite) TestAMWorkflow() { ).Return(nil).Once() // Post-preservation activities. - s.env.OnActivity(updatePackageLocalActivity, ctx, logger, pkgsvc, mock.AnythingOfType("*workflow.updatePackageLocalActivityParams")).Return(nil).Times(2) + s.env.OnActivity(updatePackageLocalActivity, ctx, logger, pkgsvc, mock.AnythingOfType("*workflow.updatePackageLocalActivityParams")).Return(nil).Once() s.env.OnActivity(setStatusLocalActivity, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil).Never() s.env.OnActivity(completePreservationActionLocalActivity, ctx, pkgsvc, mock.AnythingOfType("*workflow.completePreservationActionLocalActivityParams")).Return(nil).Once() s.env.OnActivity(activities.CleanUpActivityName, sessionCtx, mock.AnythingOfType("*activities.CleanUpActivityParams")).Return(nil).Once()