Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0nkery committed Jul 18, 2023
1 parent b76fa29 commit fb92e63
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/app/endpoint/ban.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mod tests {
authz.allow(
agent.account_id(),
vec!["classrooms", &room.classroom_id().to_string()],
"update",
"read",
);

let mut context = TestContext::new(db, authz);
Expand Down Expand Up @@ -162,15 +162,7 @@ mod tests {
shared_helpers::insert_room(&mut conn).await
};

let mut authz = TestAuthz::new();
let classroom_id = room.classroom_id().to_string();
authz.allow(
agent.account_id(),
vec!["classrooms", &classroom_id],
"read",
);

let mut context = TestContext::new(db, authz);
let mut context = TestContext::new(db, TestAuthz::new());

let payload = ListRequest { room_id: room.id() };

Expand Down

0 comments on commit fb92e63

Please sign in to comment.