Fix running vim tests with --features neovim (#36014)
This was broken incidentally in https://github.com/zed-industries/zed/pull/33417 A better fix would be to fix app shutdown to take control of the executor so that we *can* run foreground tasks; but that is a bit fiddly (draft #36015) Release Notes: - N/A
This commit is contained in:
parent
481e3e5092
commit
1a798830cb
4 changed files with 6 additions and 1 deletions
|
@ -167,6 +167,7 @@ fn generate_test_function(
|
|||
));
|
||||
cx_teardowns.extend(quote!(
|
||||
dispatcher.run_until_parked();
|
||||
#cx_varname.executor().forbid_parking();
|
||||
#cx_varname.quit();
|
||||
dispatcher.run_until_parked();
|
||||
));
|
||||
|
@ -232,7 +233,7 @@ fn generate_test_function(
|
|||
cx_teardowns.extend(quote!(
|
||||
drop(#cx_varname_lock);
|
||||
dispatcher.run_until_parked();
|
||||
#cx_varname.update(|cx| { cx.quit() });
|
||||
#cx_varname.update(|cx| { cx.background_executor().forbid_parking(); cx.quit(); });
|
||||
dispatcher.run_until_parked();
|
||||
));
|
||||
continue;
|
||||
|
@ -247,6 +248,7 @@ fn generate_test_function(
|
|||
));
|
||||
cx_teardowns.extend(quote!(
|
||||
dispatcher.run_until_parked();
|
||||
#cx_varname.executor().forbid_parking();
|
||||
#cx_varname.quit();
|
||||
dispatcher.run_until_parked();
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue