| 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 0b91750d5ab8b09c6c0ed4dc3de35321f3829113..a886f7d990f15ae2617638a7b386614e969f7fe8 100644
|
| --- a/tests/standalone/io/raw_secure_server_socket_test.dart
|
| +++ b/tests/standalone/io/raw_secure_server_socket_test.dart
|
| @@ -33,7 +33,7 @@ void testInvalidBind() {
|
| RawSecureServerSocket.bind("ko.faar.__hest__", 0, CERTIFICATE).then((_) {
|
| Expect.fail("Failure expected");
|
| }).catchError((error) {
|
| - Expect.isTrue(error is SocketIOException);
|
| + Expect.isTrue(error is SocketException);
|
| port.toSendPort().send(1);
|
| });
|
|
|
| @@ -41,7 +41,7 @@ void testInvalidBind() {
|
| RawSecureServerSocket.bind("8.8.8.8", 0, CERTIFICATE).then((_) {
|
| Expect.fail("Failure expected");
|
| }).catchError((error) {
|
| - Expect.isTrue(error is SocketIOException);
|
| + Expect.isTrue(error is SocketException);
|
| port.toSendPort().send(1);
|
| });
|
|
|
| @@ -61,7 +61,7 @@ void testInvalidBind() {
|
| })
|
| .catchError((error) {
|
| Expect.notEquals('windows', Platform.operatingSystem);
|
| - Expect.isTrue(error is SocketIOException);
|
| + Expect.isTrue(error is SocketException);
|
| s.close();
|
| port.toSendPort().send(1);
|
| });
|
| @@ -91,13 +91,13 @@ void testSimpleConnectFail(String certificate, bool cancelOnError) {
|
| Expect.fail("No client connection expected.");
|
| })
|
| .catchError((error) {
|
| - Expect.isTrue(error is SocketIOException);
|
| + Expect.isTrue(error is SocketException);
|
| });
|
| server.listen((serverEnd) {
|
| Expect.fail("No server connection expected.");
|
| },
|
| onError: (error) {
|
| - Expect.isTrue(error is SocketIOException);
|
| + Expect.isTrue(error is SocketException);
|
| clientEndFuture.then((_) {
|
| if (!cancelOnError) server.close();
|
| port.close();
|
|
|