Index: tests/lib/async/future_value_chain4_test.dart |
diff --git a/tests/lib/async/future_value_chain4_test.dart b/tests/lib/async/future_value_chain4_test.dart |
index 2c7b6527f7189ca21aba0a840434d92b14b3dce8..2f09cfe4fef4a9b6033f64650a896f14e0b43b54 100644 |
--- a/tests/lib/async/future_value_chain4_test.dart |
+++ b/tests/lib/async/future_value_chain4_test.dart |
@@ -8,7 +8,7 @@ import 'dart:async'; |
class MyFuture implements Future { |
then(valueHandler, {onError}) { |
- runAsync(() { valueHandler(499); }); |
+ scheduleMicrotask(() { valueHandler(499); }); |
} |
catchError(_) => null; |
whenComplete(_) => null; |