Index: tests/standalone/io/secure_server_closing_test.dart |
diff --git a/tests/standalone/io/secure_server_closing_test.dart b/tests/standalone/io/secure_server_closing_test.dart |
index 2e0bd4b0f59301e5b7af8470113966476c7377ae..0d27cb2dd63cdd08abf45b5ba1bf9df957dc3c8c 100644 |
--- a/tests/standalone/io/secure_server_closing_test.dart |
+++ b/tests/standalone/io/secure_server_closing_test.dart |
@@ -24,7 +24,7 @@ void testCloseOneEnd(String toClose) { |
.then((_) { |
port.close(); |
}); |
- SecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((server) { |
+ SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((server) { |
server.listen((serverConnection) { |
serverConnection.listen( |
(data) { |
@@ -60,7 +60,7 @@ void testCloseOneEnd(String toClose) { |
void testCloseBothEnds() { |
ReceivePort port = new ReceivePort(); |
- SecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((server) { |
+ SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((server) { |
var clientEndFuture = SecureSocket.connect(HOST_NAME, server.port); |
server.listen((serverEnd) { |
clientEndFuture.then((clientEnd) { |
@@ -82,8 +82,8 @@ testPauseServerSocket() { |
SecureServerSocket.bind(HOST_NAME, |
0, |
- 2 * socketCount, |
- CERTIFICATE).then((server) { |
+ CERTIFICATE, |
+ backlog: 2 * socketCount).then((server) { |
Expect.isTrue(server.port > 0); |
var subscription; |
subscription = server.listen((connection) { |
@@ -124,7 +124,7 @@ testCloseServer() { |
ReceivePort port = new ReceivePort(); |
List ends = []; |
- SecureServerSocket.bind(HOST_NAME, 0, 15, CERTIFICATE).then((server) { |
+ SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((server) { |
Expect.isTrue(server.port > 0); |
void checkDone() { |
if (ends.length < 2 * socketCount) return; |