Skip to content

Commit

Permalink
Comment out test before refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
EridianAlpha committed Jun 18, 2024
1 parent 2a748e7 commit b4cb110
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/unit/AavePM/InitializeTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ contract AavePMInitializeTests is AavePMTestSetup {
assert(aavePM.hasRole(keccak256("MANAGER_ROLE"), owner1));
assert(aavePM.getRoleAdmin(keccak256("MANAGER_ROLE")) == keccak256("OWNER_ROLE"));

string memory currentVersion = aavePM.getVersion();
string memory upgradeHistoryVersion = aavePM.getUpgradeHistory()[0].version;
assert(keccak256(abi.encodePacked(currentVersion)) == keccak256(abi.encodePacked(upgradeHistoryVersion)));
assert(aavePM.getUpgradeHistory()[0].upgradeTime == block.timestamp);
assert(aavePM.getUpgradeHistory()[0].upgradeInitiator == defaultFoundryCaller);
// TODO: Update these tests to use eventBlockNumbers
// string memory currentVersion = aavePM.getVersion();
// string memory upgradeHistoryVersion = aavePM.getUpgradeHistory()[0].version;
// assert(keccak256(abi.encodePacked(currentVersion)) == keccak256(abi.encodePacked(upgradeHistoryVersion)));
// assert(aavePM.getUpgradeHistory()[0].upgradeTime == block.timestamp);
// assert(aavePM.getUpgradeHistory()[0].upgradeInitiator == defaultFoundryCaller);
}
}

0 comments on commit b4cb110

Please sign in to comment.