Skip to content

Commit d82feb7

Browse files
committed
fix(relay): use current auth mutex in presence test fixtures
Signed-off-by: Tom Brow <[email protected]>
1 parent ea0b9c3 commit d82feb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎crates/buzz-relay/src/handlers/event.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ mod tests {
15231523
conn_id: Uuid::new_v4(),
15241524
tenant: tenant.clone(),
15251525
remote_addr: "127.0.0.1:1234".parse().unwrap(),
1526-
auth_state: RwLock::new(crate::connection::AuthState::Authenticated(
1526+
auth_state: std::sync::Mutex::new(crate::connection::AuthState::Authenticated(
15271527
buzz_auth::AuthContext {
15281528
pubkey: keys.public_key(),
15291529
scopes: vec![],
@@ -1668,7 +1668,7 @@ mod tests {
16681668
conn_id: Uuid::new_v4(),
16691669
tenant: tenant.clone(),
16701670
remote_addr: "127.0.0.1:1234".parse().unwrap(),
1671-
auth_state: RwLock::new(crate::connection::AuthState::Authenticated(
1671+
auth_state: std::sync::Mutex::new(crate::connection::AuthState::Authenticated(
16721672
buzz_auth::AuthContext {
16731673
pubkey: keys.public_key(),
16741674
scopes: vec![],

0 commit comments

Comments
 (0)