| Index: sdk/lib/_internal/pub/test/test_pub.dart
|
| diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
|
| index df1bf1b2b24fcdf93cd792445fbaa840e1864d98..44494aaf64a3cd1083cbd60cc2e86e6caf72b6cb 100644
|
| --- a/sdk/lib/_internal/pub/test/test_pub.dart
|
| +++ b/sdk/lib/_internal/pub/test/test_pub.dart
|
| @@ -837,7 +837,7 @@ Future<Pair<List<String>, List<String>>> schedulePackageValidation(
|
| return schedule(() {
|
| var cache = new SystemCache.withSources(path.join(sandboxDir, cachePath));
|
|
|
| - return new Future.sync(() {
|
| + return syncFuture(() {
|
| var validator = fn(new Entrypoint(path.join(sandboxDir, appPath), cache));
|
| return validator.validate().then((_) {
|
| return new Pair(validator.errors, validator.warnings);
|
|
|