Index: pkg/scheduled_test/lib/scheduled_server.dart |
diff --git a/pkg/scheduled_test/lib/scheduled_server.dart b/pkg/scheduled_test/lib/scheduled_server.dart |
index 1ad8ac2dd03be15e5110554048ece52096a03062..cb172687109652129ab07392ca0807e36769247f 100644 |
--- a/pkg/scheduled_test/lib/scheduled_server.dart |
+++ b/pkg/scheduled_test/lib/scheduled_server.dart |
@@ -91,7 +91,7 @@ class ScheduledServer { |
/// responsibility to check that the method/path are correct and that it's |
/// being run at the correct time. |
void _handleRequest(HttpRequest request) { |
- wrapFuture(new Future.of(() { |
+ wrapFuture(new Future.sync(() { |
if (_handlers.isEmpty) { |
throw "'$description' received ${request.method} ${request.uri.path} " |
"when no more requests were expected."; |