From 42c10b7c8c76087e027b580e5bc6dd32a1e23bdc Mon Sep 17 00:00:00 2001 From: lwolczynski Date: Wed, 9 Oct 2024 09:40:52 -0500 Subject: [PATCH] IWF-186: Bump sleep timer --- integ/any_command_combination_test.go | 2 +- service/api/temporal/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integ/any_command_combination_test.go b/integ/any_command_combination_test.go index 975f0760..413f16be 100644 --- a/integ/any_command_combination_test.go +++ b/integ/any_command_combination_test.go @@ -108,7 +108,7 @@ func doTestAnyCommandCombinationWorkflow(t *testing.T, backendType service.Backe panicAtHttpError(err, httpResp) // skip the timer for S1 - time.Sleep(time.Second * 2) // wait for a second so that timer is ready to be skipped + time.Sleep(time.Second * 5) // wait for a few seconds so that timer is ready to be skipped req3 := apiClient.DefaultApi.ApiV1WorkflowTimerSkipPost(context.Background()) httpResp, err = req3.WorkflowSkipTimerRequest(iwfidl.WorkflowSkipTimerRequest{ WorkflowId: wfId, diff --git a/service/api/temporal/client.go b/service/api/temporal/client.go index 30af5be3..daa70322 100644 --- a/service/api/temporal/client.go +++ b/service/api/temporal/client.go @@ -385,7 +385,7 @@ func (t *temporalClient) SynchronousUpdateWorkflow( UpdateName: updateType, Args: args, // TODO: Leaving this as Accepted that was a default value before WaitForStage became required argument, but Completed might be a better choice - WaitForStage: client.WorkflowUpdateStageAccepted, + WaitForStage: client.WorkflowUpdateStageCompleted, } handle, err := t.tClient.UpdateWorkflow(ctx, options) if err != nil {