Index: tests/standalone/io/socket_upgrade_to_secure_test.dart |
diff --git a/tests/standalone/io/socket_upgrade_to_secure_test.dart b/tests/standalone/io/socket_upgrade_to_secure_test.dart |
index 5b58b56467c10c882336b3db5fafeb5342472bed..84b67be5d4aec29d14277790cf3372710bfc3a61 100644 |
--- a/tests/standalone/io/socket_upgrade_to_secure_test.dart |
+++ b/tests/standalone/io/socket_upgrade_to_secure_test.dart |
@@ -164,9 +164,7 @@ void test(bool hostnameInConnect, bool handshakeBeforeSecure, |
SecureSocket.secure(socket, host: HOST, context: clientContext); |
} |
return future.then((secureSocket) { |
- Expect.throws(() { |
- socket.add([0]); |
- }); |
+ socket.add([0]); |
return secureSocket; |
}); |
}); |
@@ -181,9 +179,7 @@ void test(bool hostnameInConnect, bool handshakeBeforeSecure, |
SecureSocket.secure(socket, host: HOST, context: clientContext); |
} |
return future.then((secureSocket) { |
- Expect.throws(() { |
- socket.add([0]); |
- }); |
+ socket.add([0]); |
return secureSocket; |
}); |
}); |
@@ -195,9 +191,7 @@ void test(bool hostnameInConnect, bool handshakeBeforeSecure, |
server.listen((client) { |
if (!handshakeBeforeSecure) { |
SecureSocket.secureServer(client, serverContext).then((secureClient) { |
- Expect.throws(() { |
- client.add([0]); |
- }); |
+ client.add([0]); |
runServer(secureClient).then((_) => server.close()); |
}); |
} else { |
@@ -205,9 +199,7 @@ void test(bool hostnameInConnect, bool handshakeBeforeSecure, |
SecureSocket |
.secureServer(client, serverContext, bufferedData: carryOverData) |
.then((secureClient) { |
- Expect.throws(() { |
- client.add([0]); |
- }); |
+ client.add([0]); |
runServer(secureClient).then((_) => server.close()); |
}); |
}); |