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 4fd221feb3afd76c8b4ec5169436c30563b96f24..3d0aeb873c458ed46eb8bac150ab1adf6cdace46 100644 |
--- a/tests/standalone/io/raw_secure_server_socket_test.dart |
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart |
@@ -86,13 +86,13 @@ void testSimpleConnectFail(String certificate, bool cancelOnError) { |
Expect.fail("No client connection expected."); |
}) |
.catchError((error) { |
- Expect.isTrue(error is SocketException); |
+ Expect.isTrue(error is HandshakeException); |
}); |
server.listen((serverEnd) { |
Expect.fail("No server connection expected."); |
}, |
onError: (error) { |
- Expect.isTrue(error is SocketException); |
+ Expect.isTrue(error is CertificateException); |
clientEndFuture.then((_) { |
if (!cancelOnError) server.close(); |
port.close(); |