From 64804c04fb68732ffa685b7c7984c66e2f7b9414 Mon Sep 17 00:00:00 2001 From: kartojal Date: Wed, 21 Aug 2024 09:57:06 +0000 Subject: [PATCH] chore: move duplicated check outside if statement at BatchTestProcedures --- tests/utils/BatchTestProcedures.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/utils/BatchTestProcedures.sol b/tests/utils/BatchTestProcedures.sol index a469f45f..754bd8a4 100644 --- a/tests/utils/BatchTestProcedures.sol +++ b/tests/utils/BatchTestProcedures.sol @@ -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(),