Skip to content

Commit

Permalink
Fix stack-frame tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
slightfoot committed Apr 26, 2018
1 parent 87d5803 commit e92a0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sentry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void main() {
expect(stacktrace['frames'], const isInstanceOf<List>());
expect(stacktrace['frames'], isNotEmpty);

final Map<String, dynamic> topFrame = stacktrace['frames'].first;
final Map<String, dynamic> topFrame = (stacktrace['frames'] as Iterable<dynamic>).last;
expect(topFrame.keys,
<String>['abs_path', 'function', 'lineno', 'in_app', 'filename']);
expect(topFrame['abs_path'], 'sentry_test.dart');
Expand Down

0 comments on commit e92a0c6

Please sign in to comment.