Skip to content

Commit d772b1f

Browse files
committed
store test: Add remaining test of retry/reload, for SocketException
This is the one case that we were exercising in the report-error tests below but not in these tests.
1 parent faa87f5 commit d772b1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/model/store_test.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,12 @@ void main() {
732732
});
733733
}
734734

735-
test('retries on NetworkException', () {
735+
test('retries on NetworkException from SocketException', () {
736+
// We skip reporting errors on these; check we retry them all the same.
737+
checkRetry(prepareNetworkExceptionSocketException);
738+
});
739+
740+
test('retries on generic NetworkException', () {
736741
checkRetry(prepareNetworkException);
737742
});
738743

0 commit comments

Comments
 (0)