Index: tests/standalone/io/http_server_early_server_close_test.dart |
diff --git a/tests/standalone/io/http_server_early_server_close_test.dart b/tests/standalone/io/http_server_early_server_close_test.dart |
index 8819ef22c99e5ea2f6df7e717d53e9414d46fbdd..76092579a13fb429b85920dbef5a83a5161ac3b2 100644 |
--- a/tests/standalone/io/http_server_early_server_close_test.dart |
+++ b/tests/standalone/io/http_server_early_server_close_test.dart |
@@ -13,7 +13,7 @@ class Server { |
port = server.port; |
server.defaultRequestHandler = |
(HttpRequest request, HttpResponse response) { |
- new Timer(0, (timer) => server.close()); |
+ Timer.run(server.close); |
}; |
server.onError = (e) { |
Expect.fail("No server errors expected: $e"); |