Use run_until_parked instead of blocked in tests
This commit is contained in:
parent
3f34a8e7ec
commit
cd10ba9e06
4 changed files with 17 additions and 16 deletions
|
@ -136,7 +136,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
|||
&mut |dispatcher, _seed| {
|
||||
let executor = gpui2::BackgroundExecutor::new(std::sync::Arc::new(dispatcher.clone()));
|
||||
#cx_vars
|
||||
executor.block(#inner_fn_name(#inner_fn_args));
|
||||
executor.block_test(#inner_fn_name(#inner_fn_args));
|
||||
#cx_teardowns
|
||||
},
|
||||
#on_failure_fn_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue