Skip to content

Commit

Permalink
fixed test for modern dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsmerritt committed Feb 10, 2023
1 parent 44441e4 commit 65ac59d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion test/request_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,11 @@ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855''',
body: '',
timeout: const Duration(seconds: 10),
mockRequest: true,
).then((val) {
).then<Future<Response>>((val) {
fail('Mock client not detected!');
}, onError: (e) {
expect(e, isA<AwsRequestException>());
return Future(() => Response('body', 400));
});
});

Expand Down

0 comments on commit 65ac59d

Please sign in to comment.