Skip to content

Commit

Permalink
chore: move duplicated check outside if statement at BatchTestProcedures
Browse files Browse the repository at this point in the history
  • Loading branch information
kartojal committed Aug 21, 2024
1 parent 1e4036a commit 64804c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils/BatchTestProcedures.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ contract BatchTestProcedures is Test, DeployUtils, FfiUtils, DefaultMarketInput
assertTrue(r.variableDebtToken != address(0), 'report.variableDebtToken');
assertTrue(r.stableDebtToken != address(0), 'report.stableDebtToken');

assertTrue(r.emissionManager != address(0), 'report.emissionManager');
assertTrue(r.rewardsControllerProxy != address(0), 'report.rewardsControllerProxy');

if (config.incentivesProxy == address(0)) {
assertTrue(r.emissionManager != address(0), 'report.emissionManager');
assertTrue(
r.rewardsControllerImplementation != address(0),
'r.rewardsControllerImplementation'
);
assertTrue(r.rewardsControllerProxy != address(0), 'report.rewardsControllerProxy');
} else {
assertTrue(r.emissionManager != address(0), 'report.emissionManager');
assertEq(
r.emissionManager,
IRewardsController(config.incentivesProxy).getEmissionManager(),
Expand Down

0 comments on commit 64804c0

Please sign in to comment.