fix Dart 2 type issue in a test (#15)

This commit is contained in:
Yegor
2018-04-26 09:31:27 -07:00
committed by GitHub
parent 7348e101e8
commit 3d21b1ebbe

View File

@ -31,7 +31,7 @@ void main() {
String postUri;
Map<String, String> headers;
List<int> body;
httpMock.answerWith((Invocation invocation) {
httpMock.answerWith((Invocation invocation) async {
if (invocation.memberName == #close) {
return null;
}
@ -132,7 +132,7 @@ void main() {
final MockClient httpMock = new MockClient();
final Clock fakeClock = new Clock.fixed(new DateTime(2017, 1, 2));
httpMock.answerWith((Invocation invocation) {
httpMock.answerWith((Invocation invocation) async {
if (invocation.memberName == #close) {
return null;
}