Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 25, 2023
1 parent 0d73de1 commit a148ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/access/AccessControl.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ function shouldBehaveLikeAccessControlEnumerable() {

expect(bearers).to.have.members([this.authorized.address, this.otherAuthorized.address]);
});

it('role enumeration should be in sync after renounceRole call', async function () {
expect(await this.mock.getRoleMemberCount(ROLE)).to.equal(0);
await this.mock.connect(this.defaultAdmin).grantRole(ROLE, this.defaultAdmin);
Expand Down Expand Up @@ -492,8 +493,7 @@ function shouldBehaveLikeAccessControlDefaultAdminRules() {

beforeEach('schedule a delay change', async function () {
await this.mock.connect(this.defaultAdmin).changeDefaultAdminDelay(newDelay);
const pendingDefaultAdminDelay = await this.mock.pendingDefaultAdminDelay();
this.effectSchedule = pendingDefaultAdminDelay.schedule;
({ schedule: this.effectSchedule } = await this.mock.pendingDefaultAdminDelay());
});

for (const [fromSchedule, schedulePassed, expectNewDelay] of [
Expand Down

0 comments on commit a148ef2

Please sign in to comment.