Index: tests/standalone/src/DirectoryTest.dart |
diff --git a/tests/standalone/src/DirectoryTest.dart b/tests/standalone/src/DirectoryTest.dart |
index d015ea6868654c8dd89a8c90d3991d8b1ae1826a..77d4bdb79aee9c416e3cd35bc805056484323a7d 100644 |
--- a/tests/standalone/src/DirectoryTest.dart |
+++ b/tests/standalone/src/DirectoryTest.dart |
@@ -204,7 +204,6 @@ class DirectoryTest { |
class NestedTempDirectoryTest { |
List<Directory> createdDirectories; |
- static final int nestingDepth = 6; |
Directory current; |
NestedTempDirectoryTest(): createdDirectories = new List<Directory>(); |
@@ -215,6 +214,9 @@ class NestedTempDirectoryTest { |
void createPhaseCallback() { |
createdDirectories.add(current); |
+ int nestingDepth = 6; |
+ var os = new Platform().operatingSystem(); |
+ if (os == "windows") nestingDepth = 2; |
if (createdDirectories.length < nestingDepth) { |
current = new Directory( |
current.path + "/nested_temp_dir_${createdDirectories.length}_"); |