Skip to content

Commit

Permalink
update test name to keep same convention as base test file
Browse files Browse the repository at this point in the history
  • Loading branch information
oddaf committed Aug 20, 2024
1 parent ac6bc40 commit c0b26c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DssSpell.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ contract DssSpellTest is DssSpellTestBase {

// ----- Pre-spell sanity checks -----
// single swap conduits
_testSingleSwapRwaConduits(singleSwapConduits, MCD_PSM_USDC_A);
_checkSingleSwapRwaConduits(singleSwapConduits, MCD_PSM_USDC_A);

// multi swap conduit
assertEq (RwaConduitLike(RWA015_A_OUTPUT_CONDUIT).pal(MCD_PSM_USDC_A), 1);
Expand All @@ -962,14 +962,14 @@ contract DssSpellTest is DssSpellTestBase {

// ----- Post-spell state checks -----
// single swap conduits
_testSingleSwapRwaConduits(singleSwapConduits, MCD_LITE_PSM_USDC_A);
_checkSingleSwapRwaConduits(singleSwapConduits, MCD_LITE_PSM_USDC_A);

// multi swap conduit
assertEq (RwaConduitLike(RWA015_A_OUTPUT_CONDUIT).pal(MCD_PSM_USDC_A), 0);
assertEq (RwaConduitLike(RWA015_A_OUTPUT_CONDUIT).pal(MCD_LITE_PSM_USDC_A), 1);
}

function _testSingleSwapRwaConduits(address[9] memory conduits, address psm) internal {
function _checkSingleSwapRwaConduits(address[9] memory conduits, address psm) internal {
for (uint256 i; i < conduits.length - 1; i++) {
assertEq(
RwaConduitLike(conduits[i]).psm(),
Expand Down

0 comments on commit c0b26c0

Please sign in to comment.