Index: tests/lib/async/zone_debug_test.dart |
diff --git a/tests/lib/async/zone_debug_test.dart b/tests/lib/async/zone_debug_test.dart |
index 3d41edbef15dbdcfe38e7efce5bd1401114e7c5d..fca0a5ea459d997577185e5e1a5d4d369d5f84b5 100644 |
--- a/tests/lib/async/zone_debug_test.dart |
+++ b/tests/lib/async/zone_debug_test.dart |
@@ -79,10 +79,10 @@ main() { |
openTests++; |
forked.run(() { |
int forkTrace = stackTrace; |
- runAsync(() { |
- int runAsyncTrace = stackTrace; |
- runAsync(() { |
- expectedDebugTrace = [runAsyncTrace, forkTrace]; |
+ scheduleMicrotask(() { |
+ int scheduleMicrotaskTrace = stackTrace; |
+ scheduleMicrotask(() { |
+ expectedDebugTrace = [scheduleMicrotaskTrace, forkTrace]; |
openTests--; |
if (openTests == 0) { |
done.complete(); |
@@ -112,7 +112,7 @@ main() { |
if (openTests == 0) { |
done.complete(); |
} |
- runAsync(() { |
+ scheduleMicrotask(() { |
expectedDebugTrace = [fork3Trace, fork2Trace, globalTrace]; |
throw "gee"; |
}); |