Skip to content

Commit 0cf73b9

Browse files
committed
store test: Fill in remaining cases for report-error tests
Now we exercise all the same cases in these report-error tests as we do in the retry/reload tests above.
1 parent 23c3174 commit 0cf73b9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/model/store_test.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,12 +864,24 @@ void main() {
864864
checkNotReported(prepareNetworkExceptionSocketException);
865865
});
866866

867+
test('eventually report generic NetworkException', () {
868+
checkLateReported(prepareNetworkException).startsWith(
869+
"Error connecting to Zulip. Retrying…\n"
870+
"Error connecting to Zulip at");
871+
});
872+
867873
test('eventually report Server5xxException', () {
868874
checkLateReported(prepareServer5xxException).startsWith(
869875
"Error connecting to Zulip. Retrying…\n"
870876
"Error connecting to Zulip at");
871877
});
872878

879+
test('report MalformedServerResponseException', () {
880+
checkReported(prepareMalformedServerResponseException).startsWith(
881+
"Error connecting to Zulip. Retrying…\n"
882+
"Error connecting to Zulip at");
883+
});
884+
873885
test('report generic ZulipApiException', () {
874886
checkReported(prepareZulipApiExceptionBadRequest).startsWith(
875887
"Error connecting to Zulip. Retrying…\n"

0 commit comments

Comments
 (0)