Index: tests/standalone/io/directory_fuzz_test.dart |
diff --git a/tests/standalone/io/directory_fuzz_test.dart b/tests/standalone/io/directory_fuzz_test.dart |
index 967ac0ec87a8bd117738ee7977870a7ba2e28d5e..c1dadef04fff5c514e19c845dcfe2c3945725c54 100644 |
--- a/tests/standalone/io/directory_fuzz_test.dart |
+++ b/tests/standalone/io/directory_fuzz_test.dart |
@@ -30,7 +30,6 @@ fuzzSyncMethods() { |
typeMapping.forEach((k2, v2) { |
doItSync(() => d.renameSync(v2)); |
doItSync(() => d.listSync(recursive: v2)); |
- doItSync(() => d.list(recursive: v2).onError = (e) => null); |
}); |
}); |
}); |
@@ -57,6 +56,9 @@ fuzzAsyncMethods() { |
})); |
typeMapping.forEach((k2, v2) { |
futures.add(doItAsync(() => d.rename(v2))); |
+ futures.add(doItAsync(() { |
+ d.list(recursive: v2).listen((_) {}, onError: (e) => null); |
+ })); |
}); |
}); |
Future.wait(futures).then((ignore) => port.close()); |