Index: tests/standalone/io/http_auth_test.dart |
diff --git a/tests/standalone/io/http_auth_test.dart b/tests/standalone/io/http_auth_test.dart |
index 5e42d92a693d06c981960ea86a84b8e2a3a36758..7c8274fd863614c05c18874f5e0a9a10cfa63d08 100644 |
--- a/tests/standalone/io/http_auth_test.dart |
+++ b/tests/standalone/io/http_auth_test.dart |
@@ -168,7 +168,7 @@ void testBasicAuthenticateCallback() { |
String password = url.path.substring(1, 6); |
if (passwordChanged) password = "${password}1"; |
Completer completer = new Completer(); |
- new Timer(10, (_) { |
+ new Timer(const Duration(milliseconds: 10), () { |
client.addCredentials( |
url, realm, new HttpClientBasicCredentials(username, password)); |
completer.complete(true); |