| 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 d07b5bc52dbec689ecce4c573201a7f331734a92..ea482ef794642b7f49fca59250963199a25cfe0f 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.error);
|
| })).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'.";
|
| }
|
|
|