From 65ac59d63690e9d7f2647c9b6fd6ba6911e0ab53 Mon Sep 17 00:00:00 2001 From: Zach Merritt Date: Thu, 9 Feb 2023 23:29:08 -0800 Subject: [PATCH] fixed test for modern dart --- CHANGELOG.md | 1 + test/request_test.dart | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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)); }); });