Default local storage to Hive with legacy migration
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:relationship_saver/features/local/local_repository.dart';
|
||||
import 'package:relationship_saver/features/local/storage/local_data_store_in_memory.dart';
|
||||
import 'package:relationship_saver/features/local/storage/local_data_store_provider.dart';
|
||||
import 'package:relationship_saver/features/sync/sync_coordinator.dart';
|
||||
import 'package:relationship_saver/features/sync/sync_queue_repository.dart';
|
||||
import 'package:relationship_saver/features/sync/sync_state.dart';
|
||||
@@ -16,7 +18,10 @@ void main() {
|
||||
|
||||
test('pushPending flushes queued local mutations', () async {
|
||||
final ProviderContainer container = ProviderContainer(
|
||||
overrides: [backendGatewayProvider.overrideWithValue(_TestGateway())],
|
||||
overrides: [
|
||||
backendGatewayProvider.overrideWithValue(_TestGateway()),
|
||||
localDataStoreProvider.overrideWithValue(InMemoryLocalDataStore()),
|
||||
],
|
||||
);
|
||||
addTearDown(container.dispose);
|
||||
|
||||
@@ -77,6 +82,7 @@ void main() {
|
||||
backendGatewayProvider.overrideWithValue(
|
||||
_TestGateway(pullResult: pullResult),
|
||||
),
|
||||
localDataStoreProvider.overrideWithValue(InMemoryLocalDataStore()),
|
||||
],
|
||||
);
|
||||
addTearDown(container.dispose);
|
||||
|
||||
Reference in New Issue
Block a user