Index: tests/standalone/io/directory_error_test.dart |
diff --git a/tests/standalone/io/directory_error_test.dart b/tests/standalone/io/directory_error_test.dart |
index 950f025097d0e3dd7c4d1d611bfa81cc3f46d192..6a8ebe982c388f091e44248438c662df17901e95 100644 |
--- a/tests/standalone/io/directory_error_test.dart |
+++ b/tests/standalone/io/directory_error_test.dart |
@@ -170,7 +170,7 @@ void testRenameFileAsDirectory(Directory temp, Function done) { |
File f = new File("${temp.path}/file"); |
var newPath = "${temp.path}/file2"; |
f.createSync(); |
- var d = new Directory(f.name); |
+ var d = new Directory(f.path); |
Expect.throws(() => d.renameSync(newPath), |
(e) => e is DirectoryIOException); |
var renameDone = d.rename(newPath); |