@@ -124,8 +124,7 @@ mixin _DatabaseMixin on GlobalStore {
124124///
125125/// Unlike with [LiveGlobalStore] and the associated [UpdateMachine.load] ,
126126/// 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
129128/// explicitly when desired.
130129///
131130/// See also [TestZulipBinding.globalStore] , which provides one of these.
@@ -135,9 +134,6 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
135134 required super .accounts,
136135 }) : super (globalSettings: globalSettings ?? eg.globalSettings ());
137136
138- /// A corresponding [UpdateMachine] for each loaded account.
139- final Map <int , UpdateMachine > updateMachines = {};
140-
141137 final Map <int , InitialSnapshot > _initialSnapshots = {};
142138
143139 static const Duration removeAccountDuration = Duration (milliseconds: 1 );
@@ -174,7 +170,7 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
174170 accountId: accountId,
175171 initialSnapshot: initialSnapshot,
176172 );
177- updateMachines[accountId] = UpdateMachine .fromInitialSnapshot (
173+ UpdateMachine .fromInitialSnapshot (
178174 store: store, initialSnapshot: initialSnapshot);
179175 return Future .value (store);
180176 }
0 commit comments