Skip to content

Commit

Permalink
fix tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Nov 22, 2024
1 parent 086c39c commit 8354772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dart/test/event_processor/enricher/io_enricher_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ void main() {
final event = enricher.apply(SentryEvent(), Hint());

expect(event?.contexts.operatingSystem?.name, isNotNull);
expect(event?.contexts.operatingSystem?.version, isNotNull);
if (Platform.isLinux) {
expect(event?.contexts.operatingSystem?.kernelVersion, isNotNull);
} else {
expect(event?.contexts.operatingSystem?.version, isNotNull);
}
});

group('os info parsing', () {
Expand Down

0 comments on commit 8354772

Please sign in to comment.