Index: tests/lib/async/future_test.dart |
diff --git a/tests/lib/async/future_test.dart b/tests/lib/async/future_test.dart |
index 5458e8380c61edc004be148bde7fa164899d09ed..da514584820faee05d7a8ee990dcdede73a91a80 100644 |
--- a/tests/lib/async/future_test.dart |
+++ b/tests/lib/async/future_test.dart |
@@ -564,7 +564,8 @@ testChainedFutureValueDelay() { |
final future = completer.future; |
var port = new ReceivePort(); |
- future.then((v) => new Future.delayed(10, () => v * 2)) |
+ future.then((v) => new Future.delayed(const Duration(milliseconds: 10), |
+ () => v * 2)) |
.then((v) { |
Expect.equals(42, v); |
port.close(); |