Index: tests/standalone/io/directory_list_pause_test.dart |
diff --git a/tests/standalone/io/directory_list_pause_test.dart b/tests/standalone/io/directory_list_pause_test.dart |
index c2beb008b1d6b17dcd690895f916e1ffcdcf5eff..fac2d672c1f097a74589ddbc879df0d040f421d3 100644 |
--- a/tests/standalone/io/directory_list_pause_test.dart |
+++ b/tests/standalone/io/directory_list_pause_test.dart |
@@ -82,6 +82,7 @@ void testListIsEmpty() { |
new Directory("${d.path}/$i").createSync(); |
new File("${d.path}/$i/file").createSync(); |
} |
+ // isEmpty will cancel the stream after first data event. |
d.list(recursive: true).isEmpty.then((empty) { |
Expect.isFalse(empty); |
d.deleteSync(recursive: true); |