Skip to content

Commit 6c65e57

Browse files
committed
test for warning level
1 parent 8ef99dc commit 6c65e57

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

isar/test/sentry_isar_collection_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ void main() {
4747
);
4848
expect(crumb?.type, 'query');
4949
expect(crumb?.data?['status'], status);
50+
if (status != 'ok') {
51+
expect(crumb?.level, SentryLevel.warning);
52+
}
5053
}
5154

5255
group('add spans', () {

isar/test/sentry_isar_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ void main() {
4545
expect(crumb?.type, 'query');
4646
expect(crumb?.data?[SentryIsar.dbNameKey], Fixture.dbName);
4747
expect(crumb?.data?['status'], status);
48+
if (status != 'ok') {
49+
expect(crumb?.level, SentryLevel.warning);
50+
}
4851
}
4952

5053
group('add spans', () {

0 commit comments

Comments
 (0)