fix test borrow

This commit is contained in:
Meta Vens 2026-12-02 23:16:42 +01:00
commit 8d4f9ed3bb

View file

@ -1526,7 +1526,7 @@ mod tests {
let (status, _, _) = complete(&app, &handle, &[("ghostlight_auth", &secret)]).await;
assert_eq!(status, StatusCode::OK, "the second device needs no invite");
assert_eq!(*app.heimdall.grants.lock().unwrap().last().unwrap(), false, "and asks for no grant");
let catalog = app.state.catalog.lock().await;
let mut catalog = app.state.catalog.lock().await;
assert_eq!(catalog.sign_in("deru", None, Utc::now()).unwrap().unwrap(), "deru", "the same account, whichever device");
}