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 33799e4075cef6f3e8821fc942150b30864fff7d..3c26749f0c64cbe112710f97b33445c1d8b82e45 100644 |
--- a/tests/standalone/io/directory_error_test.dart |
+++ b/tests/standalone/io/directory_error_test.dart |
@@ -139,6 +139,7 @@ bool checkListNonExistentFileException(e) { |
void testListNonExistent(Directory temp, Function done) { |
Directory nonExistent = new Directory("${temp.path}/nonExistent"); |
+ Expect.throws(() => nonExistent.listSync(), (e) => e is DirectoryIOException); |
var lister = nonExistent.list(); |
lister.onError = (e) { |
checkListNonExistentFileException(e); |