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 ba353fadccd0c7699aad649aa369c4019f4bd14c..d260b78f4df5516a9da8224485eecfd0608ab893 100644 |
--- a/pkg/scheduled_test/lib/src/mock_clock.dart |
+++ b/pkg/scheduled_test/lib/src/mock_clock.dart |
@@ -60,7 +60,7 @@ class Clock { |
void tick([int milliseconds = 1]) { |
for (var i = 0; i < milliseconds; i++) { |
var tickTime = ++_time; |
- runAsync(() { |
+ scheduleMicrotask(() { |
_broadcastController.add(tickTime); |
}); |
} |