@@ -96,7 +96,8 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Failed_ShadowOptionNotSpecifie
96
96
testDomain ,
97
97
nil ,
98
98
workerExecutionParameters {
99
- TaskList : testTaskList ,
99
+ TaskList : testTaskList ,
100
+ UserContext : context .Background (),
100
101
},
101
102
newRegistry (),
102
103
)
@@ -112,7 +113,8 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Failed_InvalidShadowOption() {
112
113
Mode : ShadowModeContinuous , // exit condition is not specified
113
114
},
114
115
workerExecutionParameters {
115
- TaskList : testTaskList ,
116
+ TaskList : testTaskList ,
117
+ UserContext : context .Background (),
116
118
},
117
119
newRegistry (),
118
120
)
@@ -130,8 +132,9 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Failed_DomainNotExist() {
130
132
testDomain ,
131
133
& ShadowOptions {},
132
134
workerExecutionParameters {
133
- TaskList : testTaskList ,
134
- Logger : zaptest .NewLogger (s .T ()),
135
+ TaskList : testTaskList ,
136
+ Logger : zaptest .NewLogger (s .T ()),
137
+ UserContext : context .Background (),
135
138
},
136
139
newRegistry (),
137
140
)
@@ -148,7 +151,9 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Failed_TaskListNotSpecified()
148
151
s .mockService ,
149
152
testDomain ,
150
153
& ShadowOptions {},
151
- workerExecutionParameters {},
154
+ workerExecutionParameters {
155
+ UserContext : context .Background (),
156
+ },
152
157
newRegistry (),
153
158
)
154
159
@@ -169,7 +174,8 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Failed_StartWorkflowError() {
169
174
testDomain ,
170
175
& ShadowOptions {},
171
176
workerExecutionParameters {
172
- TaskList : testTaskList ,
177
+ TaskList : testTaskList ,
178
+ UserContext : context .Background (),
173
179
},
174
180
newRegistry (),
175
181
)
@@ -211,7 +217,8 @@ func (s *shadowWorkerSuite) TestStartShadowWorker_Succeed() {
211
217
Concurrency : concurrency ,
212
218
},
213
219
workerExecutionParameters {
214
- TaskList : testTaskList ,
220
+ TaskList : testTaskList ,
221
+ UserContext : context .Background (),
215
222
},
216
223
newRegistry (),
217
224
)
0 commit comments