| Index: tests/standalone/src/io/HttpServerTest.dart
|
| diff --git a/tests/standalone/src/io/HttpServerTest.dart b/tests/standalone/src/io/HttpServerTest.dart
|
| index 94486888a2da1f06feeb8141a822bdc1f841936d..7cda6f4599646a86cb9fc6d481ca6a749c5ba8de 100644
|
| --- a/tests/standalone/src/io/HttpServerTest.dart
|
| +++ b/tests/standalone/src/io/HttpServerTest.dart
|
| @@ -17,12 +17,13 @@ void testListenOn() {
|
| Expect.throws(() => server.port);
|
|
|
| ReceivePort serverPort = new ReceivePort();
|
| - server.onRequest = (HttpRequest request, HttpResponse response) {
|
| - request.inputStream.onClosed = () {
|
| - response.outputStream.close();
|
| - serverPort.close();
|
| - };
|
| - };
|
| + server.defaultRequestHandler =
|
| + (HttpRequest request, HttpResponse response) {
|
| + request.inputStream.onClosed = () {
|
| + response.outputStream.close();
|
| + serverPort.close();
|
| + };
|
| + };
|
|
|
| server.onError = (Exception e) {
|
| Expect.fail("Unexpected error in Http Server: $e");
|
|
|