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, ),