Skip to content

Commit

Permalink
IWF-186: Bump sleep timer
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Oct 9, 2024
1 parent 9262c2c commit 42c10b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integ/any_command_combination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion service/api/temporal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 42c10b7

Please sign in to comment.