Watch
0
0
Fork
You've already forked hyperhive
0

forge-client: take the token as a string, drop TokenSource and StaticToken

This commit is contained in:
atlas 2026-11-15 23:22:48 +01:00
commit 6d968c7fe6

View file

@ -2542,8 +2542,7 @@ mod tests {
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
let url = url::Url::parse(&format!("http://{}/", listener.local_addr().unwrap())).unwrap();
drop(listener);
let forge =
forge_client::async_client(url, &forge_client::StaticToken::new("stub-token")).unwrap();
let forge = forge_client::async_client(url, "stub-token").unwrap();
forge.user_get_current().await.expect_err("nothing listens")
}