Index: tests/standalone/io/http_server_test.dart |
diff --git a/tests/standalone/io/http_server_test.dart b/tests/standalone/io/http_server_test.dart |
index b470b4d6ec0aa7a36799fae838500d39a3023bfb..f5018b492b7dbead6da7951364623353ebdb5e65 100644 |
--- a/tests/standalone/io/http_server_test.dart |
+++ b/tests/standalone/io/http_server_test.dart |
@@ -41,6 +41,8 @@ void testListenOn() { |
ServerSocket.bind("127.0.0.1", 0).then((s) { |
socket = s; |
server = new HttpServer.listenOn(socket); |
+ Expect.equals(server.address.address, '127.0.0.1'); |
+ Expect.equals(server.address.host, '127.0.0.1'); |
server.listen((HttpRequest request) { |
request.listen( |
(_) {}, |
@@ -51,6 +53,7 @@ void testListenOn() { |
test(() { |
server.close(); |
Expect.throws(() => server.port); |
+ Expect.throws(() => server.address); |
socket.close(); |
asyncEnd(); |
}); |