| Index: test/shelf_io_test.dart
|
| diff --git a/test/shelf_io_test.dart b/test/shelf_io_test.dart
|
| index c1b4a410cd5fa9c5a0688de38d2a7f2b7dd8b5f1..e79a0c21aa863240218c8aed71c4eacad5cab219 100644
|
| --- a/test/shelf_io_test.dart
|
| +++ b/test/shelf_io_test.dart
|
| @@ -206,8 +206,8 @@ void main() {
|
| return _schedulePost(body: "Hello").then((response) {
|
| expect(response.statusCode, HttpStatus.NOT_FOUND);
|
| expect(response.headers["date"], "Mon, 23 May 2005 22:38:34 GMT");
|
| - expect(response.stream.bytesToString(),
|
| - completion(equals("Hello, world!")));
|
| + expect(
|
| + response.stream.bytesToString(), completion(equals("Hello, world!")));
|
| });
|
| });
|
|
|
| @@ -353,17 +353,15 @@ Future _scheduleServer(Handler handler) {
|
| Future<http.Response> _scheduleGet({Map<String, String> headers}) {
|
| if (headers == null) headers = {};
|
|
|
| - return schedule(() =>
|
| - http.get('http://localhost:$_serverPort/', headers: headers));
|
| + return schedule(
|
| + () => http.get('http://localhost:$_serverPort/', headers: headers));
|
| }
|
|
|
| -Future<http.StreamedResponse> _schedulePost({Map<String, String> headers,
|
| - String body}) {
|
| -
|
| +Future<http.StreamedResponse> _schedulePost(
|
| + {Map<String, String> headers, String body}) {
|
| return schedule(() {
|
| -
|
| - var request = new http.Request('POST',
|
| - Uri.parse('http://localhost:$_serverPort/'));
|
| + var request =
|
| + new http.Request('POST', Uri.parse('http://localhost:$_serverPort/'));
|
|
|
| if (headers != null) request.headers.addAll(headers);
|
| if (body != null) request.body = body;
|
|
|