11 lines
398 B
Dart
11 lines
398 B
Dart
import 'dart:async';
|
|
|
|
import 'package:drift/drift.dart';
|
|
|
|
/// Each test builds its own in-memory database, which is safe because no two
|
|
/// share an executor, but it trips drift's shared-executor warning and buries
|
|
/// the rest of the output.
|
|
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
|
driftRuntimeOptions.dontWarnAboutMultipleDatabases = true;
|
|
await testMain();
|
|
}
|