Index: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
diff --git a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
index 5003c726cb13653430ac0cdea56ed78d29aabf8a..97f8c92341c5f78a573887bccc5c911d625692b3 100644 |
--- a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
+++ b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
@@ -46,7 +46,7 @@ class DirectoryDescriptor extends Descriptor { |
} |
return Future.wait(contents.map((entry) { |
- return new Future.of(() => entry.validateNow(fullPath)) |
+ return new Future.sync(() => entry.validateNow(fullPath)) |
.then((_) => null) |
.catchError((e) => e); |
})).then((results) { |
@@ -57,7 +57,7 @@ class DirectoryDescriptor extends Descriptor { |
} |
Stream<List<int>> load(String pathToLoad) { |
- return futureStream(new Future.immediate(null).then((_) { |
+ return futureStream(new Future.value().then((_) { |
if (_path.isAbsolute(pathToLoad)) { |
throw "Can't load absolute path '$pathToLoad'."; |
} |