From ee4e2b0728b7b07b90bece369dce6ecdc75925ff 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 c10b4317..7b53c0d7 100644 --- a/internal/workflow/processing_test.go +++ b/internal/workflow/processing_test.go @@ -256,7 +256,7 @@ func (s *ProcessingWorkflowTestSuite) TestAMWorkflow() { ).Return(&am.PollIngestActivityResult{Status: "COMPLETE"}, 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()