File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,13 @@ func (t *TestActivityEnvironment) SetWorkerOptions(options WorkerOptions) *TestA
158158 return t
159159}
160160
161+ // SetTestTimeout sets the wall clock timeout for this activity test run. When test timeout happen, it means activity is
162+ // taking too long.
163+ func (t * TestActivityEnvironment ) SetTestTimeout (idleTimeout time.Duration ) * TestActivityEnvironment {
164+ t .impl .testTimeout = idleTimeout
165+ return t
166+ }
167+
161168// SetStartTime sets the start time of the workflow. This is optional, default start time will be the wall clock time when
162169// workflow starts. Start time is the workflow.Now(ctx) time at the beginning of the workflow.
163170func (t * TestWorkflowEnvironment ) SetStartTime (startTime time.Time ) {
You can’t perform that action at this time.
0 commit comments