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

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

Issue 2760293002: [dart:io] Adds a finalizer to _NativeSocket to avoid socket leaks (Closed)
Patch Set: Add comments. Drain Windows IO completion port in Debug Created 3 years, 9 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
Index: tests/standalone/io/socket_bind_test.dart
diff --git a/tests/standalone/io/socket_bind_test.dart b/tests/standalone/io/socket_bind_test.dart
index 08963eb36bcc0f949c9d31e1fb57d1ac7377e1fb..001e2b1e670e08b171837752349762fc048c61a4 100644
--- a/tests/standalone/io/socket_bind_test.dart
+++ b/tests/standalone/io/socket_bind_test.dart
@@ -110,6 +110,7 @@ testListenCloseListenClose(String host) async {
await client.close();
await client.drain();
+ await socket2.close();
Cutch 2017/03/27 17:17:50 maybe a comment why you're closing this socket.
zra 2017/03/28 14:40:19 Done.
asyncEnd();
}

Powered by Google App Engine
This is Rietveld 408576698