Skip to content

Commit

Permalink
Random person cannot unpause dao test
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike committed Feb 1, 2024
1 parent 106a791 commit e918bf4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/dao-dao-core/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,15 @@ fn test_admin_permissions() {
);
assert!(res.is_err());

// Random person cannot unpause the DAO
let res = app.execute_contract(
Addr::unchecked("random"),
core_with_admin_addr.clone(),
&ExecuteMsg::Unpause {},
&[],
);
assert!(res.is_err());

// Admin can unpause the DAO
let res = app.execute_contract(
Addr::unchecked("admin"),
Expand Down

0 comments on commit e918bf4

Please sign in to comment.