| 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 058b6c234da7f7a224c1bce87124a07aaa1ad132..cc8a86ee7acbe58fad1164570e041e19f9c26cc2 100644
|
| --- a/tests/standalone/io/raw_secure_server_socket_test.dart
|
| +++ b/tests/standalone/io/raw_secure_server_socket_test.dart
|
| @@ -42,16 +42,16 @@ void testInvalidBind() {
|
| // Bind to a unknown DNS name.
|
| RawSecureServerSocket.bind("ko.faar.__hest__", 0, 5, CERTIFICATE).then((_) {
|
| Expect.fail("Failure expected");
|
| - }).catchError((e) {
|
| - Expect.isTrue(e.error is SocketIOException);
|
| + }).catchError((error) {
|
| + Expect.isTrue(error is SocketIOException);
|
| port.toSendPort().send(1);
|
| });
|
|
|
| // Bind to an unavaliable IP-address.
|
| RawSecureServerSocket.bind("8.8.8.8", 0, 5, CERTIFICATE).then((_) {
|
| Expect.fail("Failure expected");
|
| - }).catchError((e) {
|
| - Expect.isTrue(e.error is SocketIOException);
|
| + }).catchError((error) {
|
| + Expect.isTrue(error is SocketIOException);
|
| port.toSendPort().send(1);
|
| });
|
|
|
| @@ -70,9 +70,9 @@ void testInvalidBind() {
|
| t.close();
|
| port.toSendPort().send(1);
|
| })
|
| - .catchError((e) {
|
| + .catchError((error) {
|
| Expect.notEquals('windows', Platform.operatingSystem);
|
| - Expect.isTrue(e.error is SocketIOException);
|
| + Expect.isTrue(error is SocketIOException);
|
| s.close();
|
| port.toSendPort().send(1);
|
| });
|
| @@ -101,16 +101,14 @@ void testSimpleConnectFail(String certificate) {
|
| .then((clientEnd) {
|
| Expect.fail("No client connection expected.");
|
| })
|
| - .catchError((e) {
|
| - Expect.isTrue(e is AsyncError);
|
| - Expect.isTrue(e.error is SocketIOException);
|
| + .catchError((error) {
|
| + Expect.isTrue(error is SocketIOException);
|
| });
|
| server.listen((serverEnd) {
|
| Expect.fail("No server connection expected.");
|
| },
|
| - onError: (e) {
|
| - Expect.isTrue(e is AsyncError);
|
| - Expect.isTrue(e.error is SocketIOException);
|
| + onError: (error) {
|
| + Expect.isTrue(error is SocketIOException);
|
| clientEndFuture.then((_) => port.close());
|
| });
|
| });
|
|
|