From 1ee48db6687f72e93120185a0c38bb4fa0fc880e Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 22 Jun 2026 17:18:58 +0200 Subject: [PATCH] fix(pnpr): pass MaxUsers to UserStore::in_memory in server tests The server test helper still called UserStore::in_memory() with no arguments after in_memory gained a required MaxUsers parameter, breaking the pnpr lib-test build. This failed the Clippy, Dylint, and pnpr test jobs on main. Default the in-memory store to MaxUsers::Unlimited, matching how AuthState::in_memory constructs it. --- pnpr/crates/pnpr/src/server/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pnpr/crates/pnpr/src/server/tests.rs b/pnpr/crates/pnpr/src/server/tests.rs index 1df70e6f06..849064dd74 100644 --- a/pnpr/crates/pnpr/src/server/tests.rs +++ b/pnpr/crates/pnpr/src/server/tests.rs @@ -172,7 +172,10 @@ impl TokenBackend for OneToken { fn app_with_token(tmp: &TempDir, raw: &str, record: TokenRecord) -> axum::Router { let tokens: Arc = Arc::new(OneToken { raw: raw.to_string(), record }); - let auth = AuthState { users: Arc::new(UserStore::in_memory()), tokens }; + let auth = AuthState { + users: Arc::new(UserStore::in_memory(crate::config::MaxUsers::Unlimited)), + tokens, + }; let listen = SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), 0); router_with_auth(Config::static_serve(listen, tmp.path().to_path_buf()), auth) }