File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -229,35 +229,6 @@ describe('Span', () => {
229
229
expect ( spy ) . not . toHaveBeenCalled ( ) ;
230
230
} ) ;
231
231
232
- test ( 'mixing hub.startSpan(transaction) + span.startChild + maxSpans' , ( ) => {
233
- const _hub = new Hub (
234
- new BrowserClient ( {
235
- _experiments : { maxSpans : 2 } ,
236
- tracesSampleRate : 1 ,
237
- } ) ,
238
- ) ;
239
- const spy = jest . spyOn ( _hub as any , 'captureEvent' ) as any ;
240
-
241
- const transaction = _hub . startTransaction ( { name : 'test' } ) ;
242
- const childSpanOne = transaction . startChild ( { op : '1' } ) ;
243
- childSpanOne . finish ( ) ;
244
-
245
- _hub . configureScope ( scope => {
246
- scope . setSpan ( transaction ) ;
247
- } ) ;
248
-
249
- const spanTwo = transaction . startChild ( { op : '2' } ) ;
250
- spanTwo . finish ( ) ;
251
-
252
- const spanThree = transaction . startChild ( { op : '3' } ) ;
253
- spanThree . finish ( ) ;
254
-
255
- transaction . finish ( ) ;
256
-
257
- expect ( spy ) . toHaveBeenCalled ( ) ;
258
- expect ( spy . mock . calls [ 0 ] [ 0 ] . spans ) . toHaveLength ( 2 ) ;
259
- } ) ;
260
-
261
232
test ( 'tree structure of spans should be correct when mixing it with span on scope' , ( ) => {
262
233
const spy = jest . spyOn ( hub as any , 'captureEvent' ) as any ;
263
234
You can’t perform that action at this time.
0 commit comments