Fix double borrow in synchronous tests that take AppContext
Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
co-authored by
Mikayla
Antonio
parent
2b883bf32e
commit
66499f60ee
@@ -175,6 +175,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
inner_fn_args.extend(quote!(&mut #cx_varname_lock,));
|
||||
cx_teardowns.extend(quote!(
|
||||
#cx_varname_lock.quit();
|
||||
drop(#cx_varname_lock);
|
||||
dispatcher.run_until_parked();
|
||||
));
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user