Skip to content

Commit

Permalink
remove inconsistency in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul committed Dec 18, 2023
1 parent dca06a5 commit f975f52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/foundry/e2e/e2e.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract E2ETest is IE2ETest, BaseTest {
function setUp() public virtual override {
super.setUp();
_grantRole(vm, AccessControl.RELATIONSHIP_MANAGER_ROLE, admin);
_grantRole(vm, AccessControl.LICENSING_MANAGER, admin);
_grantRole(vm, AccessControl.LICENSING_MANAGER_ROLE, admin);
_grantRole(
vm,
AccessControl.HOOK_CALLER_ROLE,
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/modules/licensing/LicensingFrameworkRepo.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract LicensingFrameworkRepoTest is Test, AccessControlHelper {

function setUp() public {
_setupAccessControl();
_grantRole(vm, AccessControl.LICENSING_MANAGER, admin);
_grantRole(vm, AccessControl.LICENSING_MANAGER_ROLE, admin);
repo = new LicensingFrameworkRepo(address(accessControl));
}

Expand Down Expand Up @@ -68,7 +68,7 @@ contract LicensingFrameworkRepoTest is Test, AccessControlHelper {
vm.expectRevert(
abi.encodeWithSelector(
Errors.MissingRole.selector,
AccessControl.LICENSING_MANAGER,
AccessControl.LICENSING_MANAGER_ROLE,
address(this)
)
);
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/utils/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contract BaseTest is BaseTestUtils, ProxyHelper, AccessControlHelper {

// Create Licensing contracts
licensingFrameworkRepo = new LicensingFrameworkRepo(address(accessControl));
_grantRole(vm, AccessControl.LICENSING_MANAGER, licensingManager);
_grantRole(vm, AccessControl.LICENSING_MANAGER_ROLE, licensingManager);

licenseRegistry = new LicenseRegistry(
address(registry),
Expand Down

0 comments on commit f975f52

Please sign in to comment.