Chromium Code Reviews| Index: tests/standalone/io/fuzz_support.dart |
| diff --git a/tests/standalone/io/fuzz_support.dart b/tests/standalone/io/fuzz_support.dart |
| index 4c7cd1cd3990767b79e0bc106154bed7b3b24ae7..2e07a8cea211cb4290eaed951147e08d9e127c30 100644 |
| --- a/tests/standalone/io/fuzz_support.dart |
| +++ b/tests/standalone/io/fuzz_support.dart |
| @@ -49,5 +49,7 @@ doItSync(Function f) { |
| // completion. |
| Future doItAsync(void f()) { |
| // Ignore value and errors. |
| - return new Future.delayed(0, f).catchError((_) {}).then((_) => true); |
| + return new Future.delayed(const Duration(), f) |
|
Lasse Reichstein Nielsen
2013/02/12 14:53:10
I don't like "new Duration()". It's not obvious it
floitsch
2013/02/13 19:27:30
Done.
|
| + .catchError((_) {}) |
| + .then((_) => true); |
| } |