@@ -36,7 +36,7 @@ func Test_AutoExpiration(t *testing.T) {
36
36
return nil
37
37
}
38
38
39
- w .RegisterWorkflow (wf )
39
+ require . NoError ( t , w .RegisterWorkflow (wf ) )
40
40
41
41
wfi , err := c .CreateWorkflowInstance (ctx , client.WorkflowInstanceOptions {
42
42
InstanceID : uuid .NewString (),
@@ -97,13 +97,15 @@ func Test_AutoExpiration_SubWorkflow(t *testing.T) {
97
97
InstanceID : swfInstanceID ,
98
98
}, swf ).Get (ctx )
99
99
100
- workflow .ScheduleTimer (ctx , time .Second * 2 ).Get (ctx )
100
+ if _ , err := workflow .ScheduleTimer (ctx , time .Second * 2 ).Get (ctx ); err != nil {
101
+ return 0 , err
102
+ }
101
103
102
104
return r , err
103
105
}
104
106
105
- w .RegisterWorkflow (wf )
106
- w .RegisterWorkflow (swf )
107
+ require . NoError ( t , w .RegisterWorkflow (wf ) )
108
+ require . NoError ( t , w .RegisterWorkflow (swf ) )
107
109
108
110
wfi , err := c .CreateWorkflowInstance (ctx , client.WorkflowInstanceOptions {
109
111
InstanceID : uuid .NewString (),
@@ -168,13 +170,15 @@ func Test_AutoExpiration_ContinueAsNew_SubWorkflow(t *testing.T) {
168
170
InstanceID : swfInstanceID ,
169
171
}, swf , 0 ).Get (ctx )
170
172
171
- workflow .ScheduleTimer (ctx , time .Second * 2 ).Get (ctx )
173
+ if _ , err := workflow .ScheduleTimer (ctx , time .Second * 2 ).Get (ctx ); err != nil {
174
+ return 0 , err
175
+ }
172
176
173
177
return r , err
174
178
}
175
179
176
- w .RegisterWorkflow (wf )
177
- w .RegisterWorkflow (swf )
180
+ require . NoError ( t , w .RegisterWorkflow (wf ) )
181
+ require . NoError ( t , w .RegisterWorkflow (swf ) )
178
182
179
183
wfi , err := c .CreateWorkflowInstance (ctx , client.WorkflowInstanceOptions {
180
184
InstanceID : uuid .NewString (),
0 commit comments