From 63a4e89cce903c870cda42ec9cc232941d533ed2 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 15 Mar 2024 11:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20download=20stream=20tests=20(?= =?UTF-8?q?#2140)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub runner is much faster than our configurations, apparently. ### New Pull Request Checklist - [x] I have read the [Documentation](https://pub.dev/documentation/dio/latest/) - [x] I have searched for a similar pull request in the [project](https://github.com/cfug/dio/pulls) and found none - [x] I have updated this branch with the latest `main` branch to avoid conflicts (via merge from master or rebase) - [ ] I have added the required tests to prove the fix/feature I'm adding - [ ] I have updated the documentation (if necessary) - [x] I have run the tests without failures - [ ] I have updated the `CHANGELOG.md` in the corresponding package --- dio_test/lib/src/test/download_stream_tests.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dio_test/lib/src/test/download_stream_tests.dart b/dio_test/lib/src/test/download_stream_tests.dart index e45fbf83c..e6cb1dcba 100644 --- a/dio_test/lib/src/test/download_stream_tests.dart +++ b/dio_test/lib/src/test/download_stream_tests.dart @@ -49,13 +49,13 @@ void downloadStreamTests( test('cancels request', () async { final cancelToken = CancelToken(); - Future.delayed(const Duration(milliseconds: 50), () { + Future.delayed(const Duration(milliseconds: 10), () { cancelToken.cancel(); }); await expectLater( dio.get( - '/bytes/5000', + '/bytes/10000', options: Options(responseType: ResponseType.stream), cancelToken: cancelToken, ),