| 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 58abb85cbec6aee0fd5c358261195b25902aaf66..40a58511fee55907f132f5764fd27fabd1dcaba7 100644
|
| --- a/tests/standalone/io/socket_exception_test.dart
|
| +++ b/tests/standalone/io/socket_exception_test.dart
|
| @@ -207,9 +207,11 @@ class SocketExceptionTest {
|
| int errors = 0;
|
| client.add(new List.filled(SIZE, 0));
|
| client.close();
|
| - client.done.catchError((error) {
|
| - server.close();
|
| - });
|
| + client.done
|
| + .catchError((_) {})
|
| + .whenComplete(() {
|
| + server.close();
|
| + });
|
| // Destroy other socket now.
|
| completer.complete(null);
|
| });
|
|
|