Add random delays in FakeFs
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
2b8685c1a2
commit
0cfb9ff1ae
@@ -490,7 +490,7 @@ pub struct WorkspaceParams {
|
||||
impl WorkspaceParams {
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub fn test(cx: &mut MutableAppContext) -> Self {
|
||||
let fs = Arc::new(project::FakeFs::new());
|
||||
let fs = Arc::new(project::FakeFs::new(cx.background().clone()));
|
||||
let languages = Arc::new(LanguageRegistry::new());
|
||||
let http_client = client::test::FakeHttpClient::new(|_| async move {
|
||||
Ok(client::http::ServerResponse::new(404))
|
||||
|
||||
Reference in New Issue
Block a user