Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Dec 17, 2023
1 parent 243d0d3 commit 6adce07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app_idb/test/idb_simple_insert_query_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ library demo_test;

import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart';
// ignore: depend_on_referenced_packages
import 'package:sqflite_common_ffi/sqflite_ffi.dart' as sqflite_ffi;
import 'package:tekartik_app_flutter_idb/idb.dart';
import 'package:tekartik_app_flutter_idb/src/idb_io.dart';

var objectStoreName = 'test';

void main() {
// needed on windows
sqflite_ffi.sqfliteFfiInit();
for (var factory in [
newIdbFactorySembast(
dataPath: join('.dart_tool', 'app_idb_test_databases')),
Expand Down
4 changes: 3 additions & 1 deletion app_sqflite/test/sqflite_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:flutter_test/flutter_test.dart';
// ignore: depend_on_referenced_packages
import 'package:sqflite_common_ffi/sqflite_ffi.dart' as sqflite_ffi;
import 'package:tekartik_app_flutter_sqflite/sqflite.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();
sqflite_ffi.sqfliteFfiInit();
DatabaseFactory factory;
setUpAll(() async {});

Expand Down

0 comments on commit 6adce07

Please sign in to comment.