File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
## 1.10.0-nullsafety.7-dev
2
2
3
+ * Fix broken test, ` test/chain/vm_test.dart ` , which incorrectly handles
4
+ asynchronous suspension gap markers at the end of stack traces.
5
+
3
6
## 1.10.0-nullsafety.6
4
7
5
8
* Fix bug parsing asynchronous suspension gap markers at the end of stack
Original file line number Diff line number Diff line change @@ -492,9 +492,13 @@ void main() {
492
492
}
493
493
});
494
494
495
- var chain = Chain .forTrace (trace);
496
- expect (chain.traces,
497
- hasLength (vmChainGap.allMatches (trace.toString ()).length + 1 ));
495
+ final chain = Chain .forTrace (trace);
496
+ final traceStr = trace.toString ();
497
+ final gaps = vmChainGap.allMatches (traceStr);
498
+ // If the trace ends on a gap, there's no sub-trace following the gap.
499
+ final expectedLength =
500
+ (gaps.last.end == traceStr.length) ? gaps.length : gaps.length + 1 ;
501
+ expect (chain.traces, hasLength (expectedLength));
498
502
expect (
499
503
chain.traces.first.frames, contains (frameMember (startsWith ('main' ))));
500
504
});
You can’t perform that action at this time.
0 commit comments