From 8ca1a7d43d441fa4c4f7ddcdbe75d7bf87c3cbbf Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 7 Jun 2023 16:51:54 -0700 Subject: [PATCH] add scan_complete await --- crates/project/src/worktree.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index efb898bd6c..8972a55604 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -5387,6 +5387,9 @@ mod tests { .await .unwrap(); + cx.read(|cx| tree.read(cx).as_local().unwrap().scan_complete()) + .await; + cx.foreground().run_until_parked(); let snapshot = tree.read_with(cx, |tree, _| tree.snapshot());