Skip to content

Commit

Permalink
test: update testUnassignLastSystemAdminFails
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-fruitful committed Jul 25, 2023
1 parent 729e17f commit bde2d24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/T02ACL.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ contract T02ACLTest is D03ProtocolDefaults, MockAccounts {
}

function testUnassignLastSystemAdminFails() public {
// Manually set number of system admins to 1
naymsAddress.write_sysAdmins(1);

vm.expectRevert("must have at least one system admin");
nayms.unassignRole(systemAdminId, systemContext);
}
Expand Down

0 comments on commit bde2d24

Please sign in to comment.