@@ -841,7 +841,7 @@ void main() {
841841 await prepareError ();
842842 updateMachine.debugAdvanceLoop ();
843843 async .elapse (Duration .zero);
844- check (store).isLoading .isTrue ();
844+ check (store).isRecoveringEventStream .isTrue ();
845845
846846 if (expectBackoff) {
847847 // The reload doesn't happen immediately; there's a timer.
@@ -853,7 +853,7 @@ void main() {
853853 // The global store has a new store.
854854 check (globalStore.perAccountSync (store.accountId)).not ((it) => it.identicalTo (store));
855855 updateFromGlobalStore ();
856- check (store).isLoading .isFalse ();
856+ check (store).isRecoveringEventStream .isFalse ();
857857
858858 // The new UpdateMachine updates the new store.
859859 updateMachine.debugPauseLoop ();
@@ -879,7 +879,7 @@ void main() {
879879 updateMachine.debugAdvanceLoop ();
880880 async .elapse (Duration .zero);
881881 checkLastRequest (lastEventId: 1 );
882- check (store).isLoading .isTrue ();
882+ check (store).isRecoveringEventStream .isTrue ();
883883
884884 // Polling doesn't resume immediately; there's a timer.
885885 check (async .pendingTimers).length.equals (1 );
@@ -895,7 +895,7 @@ void main() {
895895 async .flushTimers ();
896896 checkLastRequest (lastEventId: 1 );
897897 check (updateMachine.lastEventId).equals (2 );
898- check (store).isLoading .isFalse ();
898+ check (store).isRecoveringEventStream .isFalse ();
899899 });
900900 }
901901
@@ -1036,7 +1036,7 @@ void main() {
10361036 updateMachine.debugAdvanceLoop ();
10371037 async .elapse (Duration .zero);
10381038 if (shouldCheckRequest) checkLastRequest (lastEventId: 1 );
1039- check (store).isLoading .isTrue ();
1039+ check (store).isRecoveringEventStream .isTrue ();
10401040 }
10411041
10421042 Subject <String > checkReported (void Function () prepareError) {
@@ -1186,7 +1186,7 @@ void main() {
11861186 globalStore.clearCachedApiConnections ();
11871187 updateMachine.debugAdvanceLoop ();
11881188 async .elapse (Duration .zero); // the bad-event-queue error arrives
1189- check (store).isLoading .isTrue ();
1189+ check (store).isRecoveringEventStream .isTrue ();
11901190 }
11911191
11921192 test ('user logged out before new store is loaded' , () => awaitFakeAsync ((async ) async {
0 commit comments