| Index: pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart
|
| diff --git a/pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart
|
| index e56db2a204454e4896002f2a135406b5aa0584a8..1cc47f55862a9b4a60a79b5c61981b8050519948 100644
|
| --- a/pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart
|
| +++ b/pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart
|
| @@ -19,12 +19,12 @@ class NothingDescriptor extends Descriptor {
|
| NothingDescriptor(String name)
|
| : super(name);
|
|
|
| - Future create([String parent]) => new Future.immediate(null);
|
| + Future create([String parent]) => new Future.value();
|
|
|
| Future validate([String parent]) => schedule(() => validateNow(parent),
|
| "validating '$name' doesn't exist");
|
|
|
| - Future validateNow([String parent]) => new Future.of(() {
|
| + Future validateNow([String parent]) => new Future.sync(() {
|
| if (parent == null) parent = defaultRoot;
|
| var fullPath = path.join(parent, name);
|
| if (new File(fullPath).existsSync()) {
|
|
|