Skip to content

Commit

Permalink
Merge pull request #294 from Countly/crash-test-fix-iOS
Browse files Browse the repository at this point in the history
iOS send 1/0 instead for nonfatal key
  • Loading branch information
turtledreams authored Nov 7, 2024
2 parents 8d87e94 + e8a28f2 commit 5c220d7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ void main() {
expect((crash['_error'] as String).contains(exceptionName), true);
expect(crash['_custom'], segmentation);
expect(crash['_logs'], crashLogs);
expect(crash['_nonfatal'], 'true');
expect(crash['_nonfatal'], Platform.isIOS ? 1 : 'true');
} else if (i == 2) {
expect((crash['_error'] as String).contains(exceptionName), true);
expect(crash['_custom'], segmentation);
expect(crash['_logs'], crashLogs);
expect(crash['_nonfatal'], 'false');
expect(crash['_nonfatal'], Platform.isIOS ? 0 : 'false');
} else if (i == 3) {
expect((crash['_error'] as String).contains('IntegerDivisionByZeroException'), true);
expect(crash['_logs'], crashLogs);
expect(crash['_nonfatal'], 'true');
expect(crash['_nonfatal'], Platform.isIOS ? 1 : 'true');
} else if (i == 4) {
expect((crash['_error'] as String).contains('IntegerDivisionByZeroException'), true);
expect(crash['_logs'], crashLogs);
expect(crash['_nonfatal'], 'false');
expect(crash['_nonfatal'], Platform.isIOS ? 0 : 'false');
} else if (i == 5) {
expect((crash['_error'] as String).contains(throwAsyncErrorString), true);
expect(crash['_logs'], crashLogs);
Expand Down

0 comments on commit 5c220d7

Please sign in to comment.