Index: tests/lib/async/slow_consumer_test.dart |
diff --git a/tests/lib/async/slow_consumer_test.dart b/tests/lib/async/slow_consumer_test.dart |
index 9c6d0ea5a3e7fdf38a5cd25ad3f74a0fcbb901ec..a20ad6dca026683ee81dc768831b4932e73d6da5 100644 |
--- a/tests/lib/async/slow_consumer_test.dart |
+++ b/tests/lib/async/slow_consumer_test.dart |
@@ -15,7 +15,7 @@ const int MB = KB * KB; |
const int GB = KB * KB * KB; |
class SlowConsumer extends StreamConsumer { |
- var current = new Future.immediate(0); |
+ var current = new Future.value(0); |
final int bytesPerSecond; |
int finalCount; |
@@ -55,7 +55,7 @@ class SlowConsumer extends StreamConsumer { |
} |
Future close() { |
- return new Future.immediate(finalCount); |
+ return new Future.value(finalCount); |
} |
} |