Skip to content

Commit

Permalink
fix isar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Dec 23, 2024
1 parent 1495c4e commit cd9db21
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions isar/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ pubspec.lock

# Downloaded on demand by tests for correct architecture.
libisar.dylib
libisar.so
isar.dll
3 changes: 3 additions & 0 deletions isar/test/sentry_isar_collection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import 'person.dart';
import 'utils.dart';

void main() {
// https://pub.dev/packages/isar#unit-tests
setUpAll(() => Isar.initializeIsarCore(download: true));

void verifySpan(
String description,
SentrySpan? span,
Expand Down
3 changes: 3 additions & 0 deletions isar/test/sentry_isar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import 'person.dart';
import 'utils.dart';

void main() {
// https://pub.dev/packages/isar#unit-tests
setUpAll(() => Isar.initializeIsarCore(download: true));

void verifySpan(String description, SentrySpan? span) {
expect(span?.context.operation, SentryIsar.dbOp);
expect(span?.context.description, description);
Expand Down

0 comments on commit cd9db21

Please sign in to comment.