Fixed tests
This commit is contained in:
parent
f473eadf2d
commit
1789dfb8b1
6 changed files with 25 additions and 18 deletions
|
@ -583,7 +583,10 @@ impl Project {
|
|||
cx: &mut gpui::TestAppContext,
|
||||
) -> ModelHandle<Project> {
|
||||
if !cx.read(|cx| cx.has_global::<Settings>()) {
|
||||
cx.update(|cx| cx.set_global(Settings::test(cx)));
|
||||
cx.update(|cx| {
|
||||
cx.set_global(Settings::test(cx));
|
||||
cx.set_global(HomeDir(Path::new("/tmp/").to_path_buf()))
|
||||
});
|
||||
}
|
||||
|
||||
let languages = Arc::new(LanguageRegistry::test());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue