File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
packages/amplify_datastore/example/integration_test Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ void main() {
2222 await Amplify .DataStore .save (blog);
2323 var resultOne = await Amplify .DataStore .query (Blog .classType);
2424 expect (resultOne, isNotEmpty);
25- await Amplify . DataStore . clear ();
25+ await clearDataStore ();
2626 var resultTwo = await Amplify .DataStore .query (Blog .classType);
2727 expect (resultTwo, isEmpty);
2828 });
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import 'package:amplify_flutter/amplify_flutter.dart';
1212const ENABLE_CLOUD_SYNC =
1313 bool .fromEnvironment ('ENABLE_CLOUD_SYNC' , defaultValue: false );
1414const DATASTORE_READY_EVENT_TIMEOUT = const Duration (minutes: 10 );
15- const DELAY_TO_START_DATASTORE = const Duration (milliseconds: 500 );
1615const DELAY_TO_CLEAR_DATASTORE = const Duration (seconds: 2 );
1716const DELAY_FOR_OBSERVE = const Duration (milliseconds: 100 );
1817
@@ -106,7 +105,6 @@ class DataStoreStarter {
106105}
107106
108107Future <void > startDataStore () async {
109- await Future .delayed (DELAY_TO_START_DATASTORE );
110108 await DataStoreStarter ().startDataStore ();
111109}
112110
You can’t perform that action at this time.
0 commit comments