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