Index: tests/standalone/io/secure_server_socket_test.dart |
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart |
index 9563fc9ee49f974f6d659ce15263bb18ee4ee63e..a8b837f5722c65360b6aed37cb31408bacb3bb28 100644 |
--- a/tests/standalone/io/secure_server_socket_test.dart |
+++ b/tests/standalone/io/secure_server_socket_test.dart |
@@ -83,13 +83,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(); |