Chromium Code Reviews| Index: tests/standalone/io/socket_exception_test.dart |
| diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart |
| index 924822dae3e93571c9dd2fd9ac5515a557d15311..0df0be4eb067a413368d770b3da1a6ceb5736777 100644 |
| --- a/tests/standalone/io/socket_exception_test.dart |
| +++ b/tests/standalone/io/socket_exception_test.dart |
| @@ -28,6 +28,9 @@ class SocketExceptionTest { |
| } |
| Expect.equals(false, exceptionCaught); |
| Expect.equals(true, !wrongExceptionCaught); |
| + |
| + // Test invalid host. |
| + Expect.throws(() => new ServerSocket("__INVALID_HOST__", PORT, 10)); |
|
Søren Gjesse
2012/09/03 13:56:44
Maybe do some checking on the actual exception (is
Anders Johnsen
2012/09/03 14:34:38
Turns out it's a SocketIOException. Check added.
|
| } |
| static void clientSocketExceptionTest() { |
| @@ -198,6 +201,7 @@ class SocketExceptionTest { |
| clientSocketExceptionTest(); |
| indexOutOfRangeExceptionTest(); |
| unknownHostTest(); |
| + |
| // TODO(sgjesse): This test seems to fail on the buildbot. |
| //unresponsiveHostTest(); |
| } |