fix(relay): use current auth-state mutex in presence tests

Update two stale test constructors to match ConnectionState.auth_state, which now uses std::sync::Mutex. This separately fixes the upstream compile blocker discovered while validating the shared-compute PR.

Signed-off-by: Alessandro Joabar <sandro@squareup.com>
This commit is contained in:
Alessandro Joabar
2026-09-16 16:28:12 -04:00
parent 5b7cd830f2
commit 4b0f7abb27

View File

@@ -1523,7 +1523,7 @@ mod tests {
conn_id: Uuid::new_v4(),
tenant: tenant.clone(),
remote_addr: "127.0.0.1:1234".parse().unwrap(),
auth_state: RwLock::new(crate::connection::AuthState::Authenticated(
auth_state: std::sync::Mutex::new(crate::connection::AuthState::Authenticated(
buzz_auth::AuthContext {
pubkey: keys.public_key(),
scopes: vec![],
@@ -1668,7 +1668,7 @@ mod tests {
conn_id: Uuid::new_v4(),
tenant: tenant.clone(),
remote_addr: "127.0.0.1:1234".parse().unwrap(),
auth_state: RwLock::new(crate::connection::AuthState::Authenticated(
auth_state: std::sync::Mutex::new(crate::connection::AuthState::Authenticated(
buzz_auth::AuthContext {
pubkey: keys.public_key(),
scopes: vec![],