@@ -124,8 +124,7 @@ 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.
@@ -135,9 +134,6 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
135
134
required super .accounts,
136
135
}) : super (globalSettings: globalSettings ?? eg.globalSettings ());
137
136
138
- /// A corresponding [UpdateMachine] for each loaded account.
139
- final Map <int , UpdateMachine > updateMachines = {};
140
-
141
137
final Map <int , InitialSnapshot > _initialSnapshots = {};
142
138
143
139
static const Duration removeAccountDuration = Duration (milliseconds: 1 );
@@ -174,7 +170,7 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
174
170
accountId: accountId,
175
171
initialSnapshot: initialSnapshot,
176
172
);
177
- updateMachines[accountId] = UpdateMachine .fromInitialSnapshot (
173
+ UpdateMachine .fromInitialSnapshot (
178
174
store: store, initialSnapshot: initialSnapshot);
179
175
return Future .value (store);
180
176
}
0 commit comments