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 1dbb7a4b322dfa4c6ce6487b5ea5cb4c41dea513..c4d862fff947b670ed1a08be059a4ae5c8d0f313 100644 |
--- a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
+++ b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart |
@@ -18,11 +18,13 @@ final path.Builder _path = new path.Builder(style: path.Style.posix); |
/// A descriptor describing a directory containing multiple files. |
class DirectoryDescriptor extends Descriptor { |
- /// The entries contained within this directory. |
- final Iterable<Descriptor> contents; |
+ /// The entries contained within this directory. This is intentionally |
+ /// mutable. |
+ final List<Descriptor> contents; |
- DirectoryDescriptor(String name, this.contents) |
- : super(name); |
+ DirectoryDescriptor(String name, Iterable<Descriptor> contents) |
+ : super(name), |
+ contents = contents.toList(); |
Future create([String parent]) => schedule(() { |
if (parent == null) parent = defaultRoot; |