Index: tests/standalone/io/raw_secure_server_socket_test.dart |
diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart |
index 73609ae12d92f342808f92526f93ffd6bb9f4dae..ff29f770db20b02be29f1e82bbd1e3751ced01f8 100644 |
--- a/tests/standalone/io/raw_secure_server_socket_test.dart |
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart |
@@ -120,7 +120,7 @@ void testServerListenAfterConnect() { |
RawSecureServerSocket.bind(SERVER_ADDRESS, 0, 5, CERTIFICATE).then((server) { |
Expect.isTrue(server.port > 0); |
var clientEndFuture = RawSecureSocket.connect(HOST_NAME, server.port); |
- new Timer(500, (_) { |
+ new Timer(const Duration(milliseconds: 500), () { |
server.listen((serverEnd) { |
clientEndFuture.then((clientEnd) { |
clientEnd.shutdown(SocketDirection.SEND); |