@@ -152,15 +152,15 @@ describe('DatadogRumTelemetryProvider', () => {
152152 ...workflowExecutionIntent
153153 } ,
154154 duration : 20 ,
155- context : {
155+ context : ( ) => ( {
156156 success : false ,
157157 failure_reason : 'submission_rejected' ,
158158 terminal_stage : 'submission' ,
159159 workflow_started_at_unix_ms : performance . timeOrigin + 42 ,
160160 workflow_ended_at_unix_ms : performance . timeOrigin + 62 ,
161161 submission_duration_ms : 20 ,
162162 trigger_source : 'keybinding'
163- }
163+ } )
164164 } ,
165165 {
166166 name : 'queue wait' ,
@@ -173,7 +173,7 @@ describe('DatadogRumTelemetryProvider', () => {
173173 ...workflowExecutionIntent
174174 } ,
175175 duration : 40 ,
176- context : {
176+ context : ( ) => ( {
177177 success : false ,
178178 failure_reason : 'execution_failed' ,
179179 terminal_stage : 'queue_wait' ,
@@ -183,7 +183,7 @@ describe('DatadogRumTelemetryProvider', () => {
183183 submission_duration_ms : 20 ,
184184 queue_wait_duration_ms : 20 ,
185185 trigger_source : 'keybinding'
186- }
186+ } )
187187 } ,
188188 {
189189 name : 'execution' ,
@@ -197,7 +197,7 @@ describe('DatadogRumTelemetryProvider', () => {
197197 ...workflowExecutionIntent
198198 } ,
199199 duration : 100 ,
200- context : {
200+ context : ( ) => ( {
201201 success : false ,
202202 failure_reason : 'execution_failed' ,
203203 terminal_stage : 'execution' ,
@@ -209,7 +209,7 @@ describe('DatadogRumTelemetryProvider', () => {
209209 queue_wait_duration_ms : 30 ,
210210 execution_duration_ms : 50 ,
211211 trigger_source : 'keybinding'
212- }
212+ } )
213213 }
214214 ] as const ) (
215215 'records a failed workflow vital ending during $name' ,
@@ -221,7 +221,7 @@ describe('DatadogRumTelemetryProvider', () => {
221221 expect ( addDurationVital ) . toHaveBeenCalledWith ( 'workflow_execution' , {
222222 startTime : performance . timeOrigin + 42 ,
223223 duration,
224- context
224+ context : context ( )
225225 } )
226226 }
227227 )
0 commit comments