@@ -118,17 +118,13 @@ mixin _DatabaseMixin on GlobalStore {
118
118
///
119
119
/// Unlike with [LiveGlobalStore] and the associated [UpdateMachine.load] ,
120
120
/// there is no automatic event-polling loop or other automated requests.
121
- /// For each account loaded, there is a corresponding [UpdateMachine]
122
- /// in [updateMachines] , which tests can use for invoking that logic
121
+ /// Tests can use [PerAccountStore.updateMachine] in order to invoke that logic
123
122
/// explicitly when desired.
124
123
///
125
124
/// See also [TestZulipBinding.globalStore] , which provides one of these.
126
125
class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin , _DatabaseMixin {
127
126
TestGlobalStore ({required super .accounts});
128
127
129
- /// A corresponding [UpdateMachine] for each loaded account.
130
- final Map <int , UpdateMachine > updateMachines = {};
131
-
132
128
final Map <int , InitialSnapshot > _initialSnapshots = {};
133
129
134
130
static const Duration removeAccountDuration = Duration (milliseconds: 1 );
@@ -165,7 +161,7 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
165
161
accountId: accountId,
166
162
initialSnapshot: initialSnapshot,
167
163
);
168
- updateMachines[accountId] = UpdateMachine .fromInitialSnapshot (
164
+ UpdateMachine .fromInitialSnapshot (
169
165
store: store, initialSnapshot: initialSnapshot);
170
166
return Future .value (store);
171
167
}
0 commit comments