Index: tests/standalone/io/secure_server_socket_test.dart |
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart |
index cadabf39db211df2ee2261257f3dcca3ec983d65..455cf7d15a8d819ae07e0e7ff79bcc6437dbd01a 100644 |
--- a/tests/standalone/io/secure_server_socket_test.dart |
+++ b/tests/standalone/io/secure_server_socket_test.dart |
@@ -119,7 +119,7 @@ void testServerListenAfterConnect() { |
SecureServerSocket.bind(SERVER_ADDRESS, 0, 5, CERTIFICATE).then((server) { |
Expect.isTrue(server.port > 0); |
var clientEndFuture = SecureSocket.connect(HOST_NAME, server.port); |
- new Timer(500, (_) { |
+ new Timer(const Duration(milliseconds: 500), () { |
server.listen((serverEnd) { |
clientEndFuture.then((clientEnd) { |
clientEnd.close(); |