@@ -86,20 +86,20 @@ void main() {
8686 expect ((crash['_error' ] as String ).contains (exceptionName), true );
8787 expect (crash['_custom' ], segmentation);
8888 expect (crash['_logs' ], crashLogs);
89- expect (crash['_nonfatal' ], 'true' );
89+ expect (crash['_nonfatal' ], Platform .isIOS ? 1 : 'true' );
9090 } else if (i == 2 ) {
9191 expect ((crash['_error' ] as String ).contains (exceptionName), true );
9292 expect (crash['_custom' ], segmentation);
9393 expect (crash['_logs' ], crashLogs);
94- expect (crash['_nonfatal' ], 'false' );
94+ expect (crash['_nonfatal' ], Platform .isIOS ? 0 : 'false' );
9595 } else if (i == 3 ) {
9696 expect ((crash['_error' ] as String ).contains ('IntegerDivisionByZeroException' ), true );
9797 expect (crash['_logs' ], crashLogs);
98- expect (crash['_nonfatal' ], 'true' );
98+ expect (crash['_nonfatal' ], Platform .isIOS ? 1 : 'true' );
9999 } else if (i == 4 ) {
100100 expect ((crash['_error' ] as String ).contains ('IntegerDivisionByZeroException' ), true );
101101 expect (crash['_logs' ], crashLogs);
102- expect (crash['_nonfatal' ], 'false' );
102+ expect (crash['_nonfatal' ], Platform .isIOS ? 0 : 'false' );
103103 } else if (i == 5 ) {
104104 expect ((crash['_error' ] as String ).contains (throwAsyncErrorString), true );
105105 expect (crash['_logs' ], crashLogs);
0 commit comments