| 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 67f4ef4f098e1ca35c6d11c9e8d9db56a0f4c649..46d6c13de17c719e74ca889c4992a7a132c01b78 100644
|
| --- a/tests/standalone/io/socket_exception_test.dart
|
| +++ b/tests/standalone/io/socket_exception_test.dart
|
| @@ -128,7 +128,7 @@ class SocketExceptionTest {
|
| try {
|
| List<int> buffer = new List<int>(10);
|
| client.readList(buffer, -1, 1);
|
| - } on IndexOutOfRangeException catch (ex) {
|
| + } on RangeError catch (ex) {
|
| exceptionCaught = true;
|
| } on Exception catch (ex) {
|
| wrongExceptionCaught = true;
|
| @@ -140,7 +140,7 @@ class SocketExceptionTest {
|
| try {
|
| List<int> buffer = new List<int>(10);
|
| client.readList(buffer, 0, -1);
|
| - } on IndexOutOfRangeException catch (ex) {
|
| + } on RangeError catch (ex) {
|
| exceptionCaught = true;
|
| } on Exception catch (ex) {
|
| wrongExceptionCaught = true;
|
| @@ -152,7 +152,7 @@ class SocketExceptionTest {
|
| try {
|
| List<int> buffer = new List<int>(10);
|
| client.writeList(buffer, -1, 1);
|
| - } on IndexOutOfRangeException catch (ex) {
|
| + } on RangeError catch (ex) {
|
| exceptionCaught = true;
|
| } on Exception catch (ex) {
|
| wrongExceptionCaught = true;
|
| @@ -164,7 +164,7 @@ class SocketExceptionTest {
|
| try {
|
| List<int> buffer = new List<int>(10);
|
| client.writeList(buffer, 0, -1);
|
| - } on IndexOutOfRangeException catch (ex) {
|
| + } on RangeError catch (ex) {
|
| exceptionCaught = true;
|
| } on Exception catch (ex) {
|
| wrongExceptionCaught = true;
|
|
|