Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: tests/standalone/io/socket_exception_test.dart

Issue 311153003: Add Observatory test of io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/raw_socket_test.dart ('k') | tests/standalone/io/socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
« no previous file with comments | « tests/standalone/io/raw_socket_test.dart ('k') | tests/standalone/io/socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698