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

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

Issue 12342014: Remove deprecated ms arguments for Timer and Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/raw_socket_test.dart
diff --git a/tests/standalone/io/raw_socket_test.dart b/tests/standalone/io/raw_socket_test.dart
index d14dc9e7d9a5429ea3c5c8b11f8b93a278de1c69..caf067b3d04354e1d626564b35188a546679666b 100644
--- a/tests/standalone/io/raw_socket_test.dart
+++ b/tests/standalone/io/raw_socket_test.dart
@@ -288,7 +288,7 @@ testCancelResubscribeServerSocket() {
subscription = server.listen((client) {
if (++acceptCount == socketCount / 2) {
subscription.cancel();
- new Timer(0, (_) {
+ Timer.run(() {
subscription = server.listen((_) {
// Close on cancel, so no more events.
Expect.fail("Event after closed through cancel");

Powered by Google App Engine
This is Rietveld 408576698