Index: pkg/scheduled_test/lib/src/mock_clock.dart |
diff --git a/pkg/scheduled_test/lib/src/mock_clock.dart b/pkg/scheduled_test/lib/src/mock_clock.dart |
index ffa85409410b5ae251e043cde49c0488fa9f321b..6abe81f155031ca75d4c4b68114b4b9eb725c2d1 100644 |
--- a/pkg/scheduled_test/lib/src/mock_clock.dart |
+++ b/pkg/scheduled_test/lib/src/mock_clock.dart |
@@ -64,7 +64,7 @@ class Clock { |
void tick([int milliseconds=1]) { |
for (var i = 0; i < milliseconds; i++) { |
var tickTime = ++_time; |
- new Future.immediate(null).then((_) => _onTickController.add(tickTime)); |
+ new Future.value().then((_) => _onTickController.add(tickTime)); |
} |
} |