@@ -334,7 +334,7 @@ void main() {
334
334
);
335
335
336
336
test (
337
- 'loadStructuredBinaryData: does not create any spans and just forwords the call to the underlying assetbundle if disabled' ,
337
+ 'loadStructuredBinaryData: does not create any spans and just forwards the call to the underlying assetbundle if disabled' ,
338
338
() async {
339
339
final sut = fixture.getSut (structuredDataTracing: false );
340
340
final tr = fixture._hub.startTransaction (
@@ -355,7 +355,7 @@ void main() {
355
355
356
356
final tracer = (tr as SentryTracer );
357
357
358
- expect (tracer.children.length, 0 );
358
+ expect (tracer.children.length, 1 );
359
359
},
360
360
);
361
361
@@ -417,7 +417,7 @@ void main() {
417
417
final tracer = (tr as SentryTracer );
418
418
var span = tracer.children.first;
419
419
420
- expect (tracer.children.length, 2 );
420
+ expect (tracer.children.length, 3 );
421
421
422
422
expect (span.status, SpanStatus .internalError ());
423
423
expect (span.finished, true );
@@ -428,7 +428,7 @@ void main() {
428
428
'AssetBundle.loadStructuredBinaryData<String>: test.txt' ,
429
429
);
430
430
431
- span = tracer.children[ 1 ] ;
431
+ span = tracer.children.last ;
432
432
433
433
expect (span.status, SpanStatus .internalError ());
434
434
expect (span.finished, true );
@@ -463,7 +463,7 @@ void main() {
463
463
final tracer = (tr as SentryTracer );
464
464
var span = tracer.children.first;
465
465
466
- expect (tracer.children.length, 2 );
466
+ expect (tracer.children.length, 3 );
467
467
468
468
expect (span.status, SpanStatus .ok ());
469
469
expect (span.finished, true );
@@ -473,7 +473,7 @@ void main() {
473
473
'AssetBundle.loadStructuredBinaryData<String>: test.txt' ,
474
474
);
475
475
476
- span = tracer.children[ 1 ] ;
476
+ span = tracer.children.last ;
477
477
478
478
expect (span.status, SpanStatus .ok ());
479
479
expect (span.finished, true );
0 commit comments