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"); |