Use synchronous locks in FakeFs
This way, the state can be accessed without running the deterministic executor.
This commit is contained in:
parent
f95732e981
commit
5ecc9606af
3 changed files with 149 additions and 171 deletions
|
@ -3729,7 +3729,7 @@ mod tests {
|
|||
) {
|
||||
let mut files = Vec::new();
|
||||
let mut dirs = Vec::new();
|
||||
for path in fs.as_fake().paths().await {
|
||||
for path in fs.as_fake().paths() {
|
||||
if path.starts_with(root_path) {
|
||||
if fs.is_file(&path).await {
|
||||
files.push(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue