| Index: tests/standalone/io/secure_multiple_client_server_test.dart
|
| diff --git a/tests/standalone/io/secure_multiple_client_server_test.dart b/tests/standalone/io/secure_multiple_client_server_test.dart
|
| index 63e756a157e12a697152e4dba6411fb6b37134ef..d3adf57e1e43a0f24abef149782821f73b8f7c88 100644
|
| --- a/tests/standalone/io/secure_multiple_client_server_test.dart
|
| +++ b/tests/standalone/io/secure_multiple_client_server_test.dart
|
| @@ -3,9 +3,9 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| //
|
| // VMOptions=
|
| +// VMOptions=--short_socket_read
|
| // VMOptions=--short_socket_write
|
| -// Tests multiple secure connections from a client to a server, hitting
|
| -// the secure connection cache.
|
| +// VMOptions=--short_socket_read --short_socket_write
|
|
|
| import "package:expect/expect.dart";
|
| import "package:path/path.dart";
|
| @@ -33,15 +33,8 @@ Future<SecureServerSocket> startServer() {
|
| });
|
| }
|
|
|
| -// A delay is inserted so that later connections use the secure
|
| -// connection cache to reestablish connection with a shorter handshake.
|
| -Duration delay = new Duration(milliseconds: 0);
|
| -Duration betweenTests = new Duration(milliseconds: 200);
|
| Future testClient(server, name) {
|
| - delay += betweenTests;
|
| - return new Future.delayed(delay).then((_) {
|
| - return SecureSocket.connect(HOST_NAME, server.port);
|
| - }).then((socket) {
|
| + return SecureSocket.connect(HOST_NAME, server.port).then((socket) {
|
| socket.add("Hello from client $name".codeUnits);
|
| socket.close();
|
| return socket.fold(<int>[], (message, data) => message..addAll(data))
|
|
|