diff --git a/CHANGELOG.md b/CHANGELOG.md index 168aebf..1e70de6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Minor housekeeping to fix running tests & lint deprecations * Fixed typo in description * Updated example +* Fixed test case for modern dart ## [0.4.0+1] - 2022/01/25 diff --git a/test/request_test.dart b/test/request_test.dart index 05a3380..0310b40 100644 --- a/test/request_test.dart +++ b/test/request_test.dart @@ -420,10 +420,11 @@ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855''', body: '', timeout: const Duration(seconds: 10), mockRequest: true, - ).then((val) { + ).then>((val) { fail('Mock client not detected!'); }, onError: (e) { expect(e, isA()); + return Future(() => Response('body', 400)); }); });