@@ -118,17 +118,13 @@ mixin _DatabaseMixin on GlobalStore {
118118///
119119/// Unlike with [LiveGlobalStore] and the associated [UpdateMachine.load] ,
120120/// 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
123122/// explicitly when desired.
124123///
125124/// See also [TestZulipBinding.globalStore] , which provides one of these.
126125class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin , _DatabaseMixin {
127126 TestGlobalStore ({required super .accounts});
128127
129- /// A corresponding [UpdateMachine] for each loaded account.
130- final Map <int , UpdateMachine > updateMachines = {};
131-
132128 final Map <int , InitialSnapshot > _initialSnapshots = {};
133129
134130 static const Duration removeAccountDuration = Duration (milliseconds: 1 );
@@ -165,7 +161,7 @@ class TestGlobalStore extends GlobalStore with _ApiConnectionsMixin, _DatabaseMi
165161 accountId: accountId,
166162 initialSnapshot: initialSnapshot,
167163 );
168- updateMachines[accountId] = UpdateMachine .fromInitialSnapshot (
164+ UpdateMachine .fromInitialSnapshot (
169165 store: store, initialSnapshot: initialSnapshot);
170166 return Future .value (store);
171167 }
0 commit comments