File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ class TestGlobalStore extends GlobalStore {
125
125
}
126
126
127
127
static const Duration removeAccountDuration = Duration (milliseconds: 1 );
128
+ Duration ? loadPerAccountDuration;
128
129
129
130
/// Consume the log of calls made to [doRemoveAccount] .
130
131
List <int > takeDoRemoveAccountCalls () {
@@ -142,7 +143,10 @@ class TestGlobalStore extends GlobalStore {
142
143
}
143
144
144
145
@override
145
- Future <PerAccountStore > doLoadPerAccount (int accountId) {
146
+ Future <PerAccountStore > doLoadPerAccount (int accountId) async {
147
+ if (loadPerAccountDuration != null ) {
148
+ await Future <void >.delayed (loadPerAccountDuration! );
149
+ }
146
150
final initialSnapshot = _initialSnapshots[accountId]! ;
147
151
final store = PerAccountStore .fromInitialSnapshot (
148
152
globalStore: this ,
You can’t perform that action at this time.
0 commit comments