Skip to content

Commit

Permalink
IWF-186: Bump test sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Oct 10, 2024
1 parent 7d030dc commit f44cff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions integ/any_command_combination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ func doTestAnyCommandCombinationWorkflow(t *testing.T, backendType service.Backe
panicAtHttpError(err, httpResp)

// skip the timer for S1
// TODO: Test passes locally with a 2 second wait, but not in Gitlab CI
time.Sleep(time.Second * 2) // wait for a few seconds 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 integ/locking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func doTestLockingWorkflow(t *testing.T, backendType service.BackendType, config
ValueType: iwfidl.INT.Ptr(),
},
}
time.Sleep(time.Second * 1)
time.Sleep(time.Second * 2)
reqRpc := apiClient.DefaultApi.ApiV1WorkflowRpcPost(context.Background())
rpcResp, httpResp, err := reqRpc.WorkflowRpcRequest(iwfidl.WorkflowRpcRequest{
WorkflowId: wfId,
Expand Down

0 comments on commit f44cff1

Please sign in to comment.