Skip to content

Commit 57852f3

Browse files
committed
store test [nfc]: Rename logReportedError helper
This was called `logAndReportErrorToUserBriefly`; but it doesn't log *and* report, it just logs instead of reporting.
1 parent 454f27d commit 57852f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/model/store_test.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -753,17 +753,13 @@ void main() {
753753
return result;
754754
}
755755

756-
/// This is an alternative to [ZulipApp]'s implementation of
757-
/// [reportErrorToUserBriefly] for testing.
758-
Future<void> logAndReportErrorToUserBriefly(String? message, {
759-
String? details,
760-
}) async {
756+
Future<void> logReportedError(String? message, {String? details}) async {
761757
if (message == null) return;
762758
lastReportedError = '$message\n$details';
763759
}
764760

765761
Future<void> prepare() async {
766-
reportErrorToUserBriefly = logAndReportErrorToUserBriefly;
762+
reportErrorToUserBriefly = logReportedError;
767763
addTearDown(() => reportErrorToUserBriefly = defaultReportErrorToUserBriefly);
768764
await preparePoll(lastEventId: 1);
769765
}

0 commit comments

Comments
 (0)