Skip to content

Commit 2f83357

Browse files
committed
store test [nfc]: Put report-error tests in same logical order as retry/reload
1 parent 1112d69 commit 2f83357

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/model/store_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,8 @@ void main() {
848848
});
849849
}
850850

851-
test('report generic ZulipApiException', () {
852-
checkReported(prepareZulipApiExceptionBadRequest).startsWith(
853-
"Error connecting to Zulip. Retrying…\n"
854-
"Error connecting to Zulip at");
851+
test('ignore NetworkException from SocketException', () {
852+
checkNotReported(prepareNetworkExceptionSocketException);
855853
});
856854

857855
test('eventually report Server5xxException', () {
@@ -860,8 +858,10 @@ void main() {
860858
"Error connecting to Zulip at");
861859
});
862860

863-
test('ignore NetworkException from SocketException', () {
864-
checkNotReported(prepareNetworkExceptionSocketException);
861+
test('report generic ZulipApiException', () {
862+
checkReported(prepareZulipApiExceptionBadRequest).startsWith(
863+
"Error connecting to Zulip. Retrying…\n"
864+
"Error connecting to Zulip at");
865865
});
866866
});
867867
});

0 commit comments

Comments
 (0)