Skip to content

Commit

Permalink
✅ Fix download stream tests (#2140)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AlexV525 authored Mar 15, 2024
1 parent 4cc40b7 commit 63a4e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dio_test/lib/src/test/download_stream_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down

0 comments on commit 63a4e89

Please sign in to comment.