diff --git a/drift/test/database/streams_test.dart b/drift/test/database/streams_test.dart index 46969c6e..c00f0702 100644 --- a/drift/test/database/streams_test.dart +++ b/drift/test/database/streams_test.dart @@ -63,8 +63,6 @@ void main() { final second = db.select(db.users).watch(); expect(second, emits(isEmpty)); - // calling executor.dialect is ok, it's needed to construct the statement - verify(executor.dialect); verifyNoMoreInteractions(executor); }); diff --git a/drift/test/remote_test.dart b/drift/test/remote_test.dart index 084c7a14..01007244 100644 --- a/drift/test/remote_test.dart +++ b/drift/test/remote_test.dart @@ -1,3 +1,4 @@ +@TestOn('vm') import 'package:async/async.dart'; import 'package:drift/drift.dart'; import 'package:drift/remote.dart'; diff --git a/drift/test/test_utils/mocks.dart b/drift/test/test_utils/mocks.dart index 7b8c8d8a..33838ebd 100644 --- a/drift/test/test_utils/mocks.dart +++ b/drift/test/test_utils/mocks.dart @@ -9,6 +9,7 @@ class MockExecutor extends Mock implements QueryExecutor { MockExecutor([this.openingDetails]) { when(dialect).thenReturn(SqlDialect.sqlite); + when(supportsBigInt).thenReturn(true); when(runSelect(any, any)).thenAnswer((_) { assert(_opened); return Future.value([]); @@ -55,6 +56,9 @@ class MockExecutor extends Mock implements QueryExecutor { SqlDialect get dialect => _nsm(Invocation.getter(#dialect), SqlDialect.sqlite); + @override + bool get supportsBigInt => _nsm(Invocation.getter(#supportsBigInt), true); + @override Future ensureOpen(QueryExecutorUser? user) => _nsm(Invocation.method(#ensureOpen, [user]), Future.value(true)); diff --git a/tool/test_all.sh b/tool/test_all.sh index 0f80f0f2..04963dc0 100755 --- a/tool/test_all.sh +++ b/tool/test_all.sh @@ -7,6 +7,7 @@ dart format -o none --set-exit-if-changed . dart analyze --fatal-infos --fatal-warnings dart run build_runner build --delete-conflicting-outputs dart test +dart test -p chrome cd ../drift_dev rm -rf .dart_tool