Fix relay presence fixtures for mutex auth state

Signed-off-by: Alex Rosenzweig <arosenzweig@squareup.com>
This commit is contained in:
Alex Rosenzweig
2026-09-16 17:26:25 -05:00
parent 36b442a1bd
commit 6e725694f4

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![],