diff --git a/test/T02ACL.t.sol b/test/T02ACL.t.sol index fd800a1c..df72085f 100644 --- a/test/T02ACL.t.sol +++ b/test/T02ACL.t.sol @@ -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); }