Index: tests/standalone/io/directory_list_nonexistent_test.dart |
diff --git a/tests/standalone/io/directory_list_nonexistent_test.dart b/tests/standalone/io/directory_list_nonexistent_test.dart |
index 8e4043deba0bcc6f7f99832405d46afbbbed937a..f33303d49812cab43b2e9f07749f77a58a6fd561 100644 |
--- a/tests/standalone/io/directory_list_nonexistent_test.dart |
+++ b/tests/standalone/io/directory_list_nonexistent_test.dart |
@@ -16,9 +16,9 @@ void testListNonExistent() { |
asyncStart(); |
Directory.systemTemp.createTemp('dart_directory_list_nonexistent').then((d) { |
d.delete().then((ignore) { |
- Expect.throws(() => d.listSync(), (e) => e is DirectoryException); |
+ Expect.throws(() => d.listSync(), (e) => e is FileSystemException); |
Expect.throws(() => d.listSync(recursive: true), |
- (e) => e is DirectoryException); |
+ (e) => e is FileSystemException); |
asyncEnd(); |
}); |
}); |
@@ -39,9 +39,9 @@ void testListTooLongName() { |
} |
var long = new Directory("${buffer.toString()}"); |
Expect.throws(() => long.listSync(), |
- (e) => e is DirectoryException); |
+ (e) => e is FileSystemException); |
Expect.throws(() => long.listSync(recursive: true), |
- (e) => e is DirectoryException); |
+ (e) => e is FileSystemException); |
d.deleteSync(recursive: true); |
asyncEnd(); |
}); |