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 2ca5688e3e466b8a49910be167b9cc1eb47fb031..a07083b68df07c3e197155bfae3e41006d536ad8 100644 |
--- a/tests/standalone/io/raw_secure_server_socket_test.dart |
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart |
@@ -17,7 +17,7 @@ const CERTIFICATE = "localhost_cert"; |
void testSimpleBind() { |
ReceivePort port = new ReceivePort(); |
- RawSecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((s) { |
+ RawSecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((s) { |
Expect.isTrue(s.port > 0); |
s.close(); |
port.close(); |
@@ -30,7 +30,7 @@ void testInvalidBind() { |
port.receive((_, __) { count++; if (count == 3) port.close(); }); |
// Bind to a unknown DNS name. |
- RawSecureServerSocket.bind("ko.faar.__hest__", 0, 5, CERTIFICATE).then((_) { |
+ RawSecureServerSocket.bind("ko.faar.__hest__", 0, CERTIFICATE).then((_) { |
Expect.fail("Failure expected"); |
}).catchError((error) { |
Expect.isTrue(error is SocketIOException); |
@@ -38,7 +38,7 @@ void testInvalidBind() { |
}); |
// Bind to an unavaliable IP-address. |
- RawSecureServerSocket.bind("8.8.8.8", 0, 5, CERTIFICATE).then((_) { |
+ RawSecureServerSocket.bind("8.8.8.8", 0, CERTIFICATE).then((_) { |
Expect.fail("Failure expected"); |
}).catchError((error) { |
Expect.isTrue(error is SocketIOException); |
@@ -49,10 +49,9 @@ void testInvalidBind() { |
// Either an error or a successful bind is allowed. |
// Windows platforms allow multiple binding to the same socket, with |
// unpredictable results. |
- RawSecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((s) { |
+ RawSecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((s) { |
RawSecureServerSocket.bind(HOST_NAME, |
s.port, |
- 5, |
CERTIFICATE).then((t) { |
Expect.equals('windows', Platform.operatingSystem); |
Expect.equals(s.port, t.port); |
@@ -71,7 +70,7 @@ void testInvalidBind() { |
void testSimpleConnect(String certificate) { |
ReceivePort port = new ReceivePort(); |
- RawSecureServerSocket.bind(HOST_NAME, 0, 5, certificate).then((server) { |
+ RawSecureServerSocket.bind(HOST_NAME, 0, certificate).then((server) { |
var clientEndFuture = RawSecureSocket.connect(HOST_NAME, server.port); |
server.listen((serverEnd) { |
clientEndFuture.then((clientEnd) { |
@@ -86,7 +85,7 @@ void testSimpleConnect(String certificate) { |
void testSimpleConnectFail(String certificate) { |
ReceivePort port = new ReceivePort(); |
- RawSecureServerSocket.bind(HOST_NAME, 0, 5, certificate).then((server) { |
+ RawSecureServerSocket.bind(HOST_NAME, 0, certificate).then((server) { |
var clientEndFuture = RawSecureSocket.connect(HOST_NAME, server.port) |
.then((clientEnd) { |
Expect.fail("No client connection expected."); |
@@ -106,7 +105,7 @@ void testSimpleConnectFail(String certificate) { |
void testServerListenAfterConnect() { |
ReceivePort port = new ReceivePort(); |
- RawSecureServerSocket.bind(HOST_NAME, 0, 5, CERTIFICATE).then((server) { |
+ RawSecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE).then((server) { |
Expect.isTrue(server.port > 0); |
var clientEndFuture = RawSecureSocket.connect(HOST_NAME, server.port); |
new Timer(const Duration(milliseconds: 500), () { |
@@ -430,9 +429,9 @@ void testSimpleReadWrite(bool listenSecure, |
if (listenSecure) { |
RawSecureServerSocket.bind( |
- HOST_NAME, 0, 5, CERTIFICATE).then(serverReady); |
+ HOST_NAME, 0, CERTIFICATE).then(serverReady); |
} else { |
- RawServerSocket.bind(HOST_NAME, 0, 5).then(serverReady); |
+ RawServerSocket.bind(HOST_NAME, 0).then(serverReady); |
} |
} |