Index: pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart |
diff --git a/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart |
index 1c2245961e0bf335146df46906b31ab45c4eb3e3..7eb0c61ebf4c099c95c77c7467bc4b0a5dea2ccd 100644 |
--- a/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart |
+++ b/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart |
@@ -110,7 +110,7 @@ class PatternDescriptor extends Descriptor { |
return '/${regExp.pattern}/$flags'; |
} |
- Future create([String parent]) => new Future.immediateError( |
+ Future create([String parent]) => new Future.error( |
new UnsupportedError("Pattern descriptors don't support create().")); |
Stream<List<int>> load(String pathToLoad) => errorStream( |