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

Unified Diff: tests/lib/async/slow_consumer2_test.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/lib/async/slow_consumer2_test.dart
diff --git a/tests/lib/async/slow_consumer2_test.dart b/tests/lib/async/slow_consumer2_test.dart
index d4865c4a58f524c57353394e7380c295b60a1911..f17fb07d52841a7fe540383e2c26f6a72db834f9 100644
--- a/tests/lib/async/slow_consumer2_test.dart
+++ b/tests/lib/async/slow_consumer2_test.dart
@@ -58,7 +58,7 @@ class SlowConsumer extends StreamConsumer {
}
Future close() {
- return new Future.immediate(finalCount);
+ return new Future.value(finalCount);
}
}

Powered by Google App Engine
This is Rietveld 408576698