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:
parent
2b883bf32e
commit
66499f60ee
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||||
inner_fn_args.extend(quote!(&mut #cx_varname_lock,));
|
inner_fn_args.extend(quote!(&mut #cx_varname_lock,));
|
||||||
cx_teardowns.extend(quote!(
|
cx_teardowns.extend(quote!(
|
||||||
#cx_varname_lock.quit();
|
#cx_varname_lock.quit();
|
||||||
|
drop(#cx_varname_lock);
|
||||||
dispatcher.run_until_parked();
|
dispatcher.run_until_parked();
|
||||||
));
|
));
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue