From 92b81c746c1ce4a5c40f370416b686e575a3279b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Raddaoui=20Mar=C3=ADn?= Date: Fri, 1 Dec 2023 21:29:40 +0100 Subject: [PATCH] Undo unnecessary expectation change --- internal/workflow/processing_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()