Skip to content

Commit 65ac59d

Browse files
committed
fixed test for modern dart
1 parent 44441e4 commit 65ac59d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Minor housekeeping to fix running tests & lint deprecations
44
* Fixed typo in description
55
* Updated example
6+
* Fixed test case for modern dart
67

78
## [0.4.0+1] - 2022/01/25
89

test/request_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,11 @@ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855''',
420420
body: '',
421421
timeout: const Duration(seconds: 10),
422422
mockRequest: true,
423-
).then((val) {
423+
).then<Future<Response>>((val) {
424424
fail('Mock client not detected!');
425425
}, onError: (e) {
426426
expect(e, isA<AwsRequestException>());
427+
return Future(() => Response('body', 400));
427428
});
428429
});
429430

0 commit comments

Comments
 (0)