Index: tests/standalone/io/http_shutdown_test.dart |
diff --git a/tests/standalone/io/http_shutdown_test.dart b/tests/standalone/io/http_shutdown_test.dart |
index 6d83bd437ae5dd902b9e20c48386aab047f80f2f..c296be5f67a0b4c401c6aa684da47f2137c66fab 100644 |
--- a/tests/standalone/io/http_shutdown_test.dart |
+++ b/tests/standalone/io/http_shutdown_test.dart |
@@ -116,7 +116,7 @@ void test4() { |
server.listen("127.0.0.1", 0); |
server.defaultRequestHandler = (var request, var response) { |
request.inputStream.onClosed = () { |
- new Timer.repeating(100, (timer) { |
+ new Timer.repeating(new Duration(milliseconds: 100), (timer) { |
if (server.connectionsInfo().total == 0) { |
server.close(); |
timer.cancel(); |
@@ -157,7 +157,7 @@ void test5(int totalConnections) { |
conn.onError = (e) => Expect.isTrue(e is HttpException); |
} |
bool clientClosed = false; |
- new Timer.repeating(100, (timer) { |
+ new Timer.repeating(new Duration(milliseconds: 100), (timer) { |
if (!clientClosed) { |
if (server.connectionsInfo().total == totalConnections) { |
clientClosed = true; |