@@ -183,34 +183,36 @@ describe('Integration | flush', () => {
183
183
184
184
// Add this to test that segment ID increases
185
185
mockAddPerformanceEntries . mockImplementationOnce ( ( ) =>
186
- createPerformanceSpans (
187
- replay ,
188
- createPerformanceEntries ( [
189
- {
190
- name : 'https://sentry.io/foo.js' ,
191
- entryType : 'resource' ,
192
- startTime : 176.59999990463257 ,
193
- duration : 5.600000023841858 ,
194
- initiatorType : 'link' ,
195
- nextHopProtocol : 'h2' ,
196
- workerStart : 177.5 ,
197
- redirectStart : 0 ,
198
- redirectEnd : 0 ,
199
- fetchStart : 177.69999992847443 ,
200
- domainLookupStart : 177.69999992847443 ,
201
- domainLookupEnd : 177.69999992847443 ,
202
- connectStart : 177.69999992847443 ,
203
- connectEnd : 177.69999992847443 ,
204
- secureConnectionStart : 177.69999992847443 ,
205
- requestStart : 177.5 ,
206
- responseStart : 181 ,
207
- responseEnd : 182.19999992847443 ,
208
- transferSize : 0 ,
209
- encodedBodySize : 0 ,
210
- decodedBodySize : 0 ,
211
- serverTiming : [ ] ,
212
- } as unknown as PerformanceResourceTiming ,
213
- ] ) ,
186
+ Promise . all (
187
+ createPerformanceSpans (
188
+ replay ,
189
+ createPerformanceEntries ( [
190
+ {
191
+ name : 'https://sentry.io/foo.js' ,
192
+ entryType : 'resource' ,
193
+ startTime : 176.59999990463257 ,
194
+ duration : 5.600000023841858 ,
195
+ initiatorType : 'link' ,
196
+ nextHopProtocol : 'h2' ,
197
+ workerStart : 177.5 ,
198
+ redirectStart : 0 ,
199
+ redirectEnd : 0 ,
200
+ fetchStart : 177.69999992847443 ,
201
+ domainLookupStart : 177.69999992847443 ,
202
+ domainLookupEnd : 177.69999992847443 ,
203
+ connectStart : 177.69999992847443 ,
204
+ connectEnd : 177.69999992847443 ,
205
+ secureConnectionStart : 177.69999992847443 ,
206
+ requestStart : 177.5 ,
207
+ responseStart : 181 ,
208
+ responseEnd : 182.19999992847443 ,
209
+ transferSize : 0 ,
210
+ encodedBodySize : 0 ,
211
+ decodedBodySize : 0 ,
212
+ serverTiming : [ ] ,
213
+ } as unknown as PerformanceResourceTiming ,
214
+ ] ) ,
215
+ ) ,
214
216
) ,
215
217
) ;
216
218
// flush #5 @ t=25s - debounced flush calls `flush`
0 commit comments