diff --git a/crates/vector_store/src/vector_store_tests.rs b/crates/vector_store/src/vector_store_tests.rs index ede43b9ff8b1610a5f43ed03bd277d5d943cba1d..8c5a667c7de11b1f573585e5b0415e88b3a00f2a 100644 --- a/crates/vector_store/src/vector_store_tests.rs +++ b/crates/vector_store/src/vector_store_tests.rs @@ -81,9 +81,11 @@ async fn test_vector_store(cx: &mut TestAppContext) { let worktree_id = project.read_with(cx, |project, cx| { project.worktrees(cx).next().unwrap().read(cx).id() }); - let add_project = store.update(cx, |store, cx| store.add_project(project.clone(), cx)); - - add_project.await.unwrap(); + store + .update(cx, |store, cx| store.add_project(project.clone(), cx)) + .await + .unwrap(); + cx.foreground().run_until_parked(); let search_results = store .update(cx, |store, cx| {