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() {
22
22
await Amplify .DataStore .save (blog);
23
23
var resultOne = await Amplify .DataStore .query (Blog .classType);
24
24
expect (resultOne, isNotEmpty);
25
- await Amplify . DataStore . clear ();
25
+ await clearDataStore ();
26
26
var resultTwo = await Amplify .DataStore .query (Blog .classType);
27
27
expect (resultTwo, isEmpty);
28
28
});
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import 'package:amplify_flutter/amplify_flutter.dart';
12
12
const ENABLE_CLOUD_SYNC =
13
13
bool .fromEnvironment ('ENABLE_CLOUD_SYNC' , defaultValue: false );
14
14
const DATASTORE_READY_EVENT_TIMEOUT = const Duration (minutes: 10 );
15
- const DELAY_TO_START_DATASTORE = const Duration (milliseconds: 500 );
16
15
const DELAY_TO_CLEAR_DATASTORE = const Duration (seconds: 2 );
17
16
const DELAY_FOR_OBSERVE = const Duration (milliseconds: 100 );
18
17
@@ -106,7 +105,6 @@ class DataStoreStarter {
106
105
}
107
106
108
107
Future <void > startDataStore () async {
109
- await Future .delayed (DELAY_TO_START_DATASTORE );
110
108
await DataStoreStarter ().startDataStore ();
111
109
}
112
110
You can’t perform that action at this time.
0 commit comments