| Index: sdk/lib/_internal/pub/test/version_solver_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/version_solver_test.dart b/sdk/lib/_internal/pub/test/version_solver_test.dart
|
| index d98a5bff0a875b18cb7cd7f58a7641b747111aa3..7673fde1184fe48e7ec959f7c5db3e2c273af01a 100644
|
| --- a/sdk/lib/_internal/pub/test/version_solver_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/version_solver_test.dart
|
| @@ -1378,7 +1378,7 @@ class MockSource extends CachedSource {
|
| }
|
|
|
| Future<List<Version>> getVersions(String name, String description) {
|
| - return syncFuture(() {
|
| + return new Future.sync(() {
|
| // Make sure the solver doesn't request the same thing twice.
|
| if (_requestedVersions.contains(description)) {
|
| throw new Exception('Version list for $description was already '
|
| @@ -1397,7 +1397,7 @@ class MockSource extends CachedSource {
|
| }
|
|
|
| Future<Pubspec> describeUncached(PackageId id) {
|
| - return syncFuture(() {
|
| + return new Future.sync(() {
|
| // Make sure the solver doesn't request the same thing twice.
|
| if (_requestedPubspecs.containsKey(id.description) &&
|
| _requestedPubspecs[id.description].contains(id.version)) {
|
|
|