Skip to content

Commit

Permalink
add testNewOsmMomAddition
Browse files Browse the repository at this point in the history
  • Loading branch information
SidestreamColdMelon committed Oct 17, 2024
1 parent 224f53f commit b8443d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/DssSpell.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1001,4 +1001,21 @@ contract DssSpellTest is DssSpellTestBase {
assertEq(spot, 0, _concat("TestError/non-zero-spot-price-after-cull-", ilk));
}
}

function testNewOsmMomAddition() public {
bytes32 ilk = "LSE-MKR-A";
address osm = addr.addr("PIP_MKR");

assertEq(osmMom.osms(ilk), address(0), "TestError/osm-already-in-mom");

_vote(address(spell));
_scheduleWaitAndCast(address(spell));
assertTrue(spell.done(), "TestError/spell-not-done");

assertEq(osmMom.osms(ilk), osm, "TestError/osm-not-in-mom");

assertEq(OsmAbstract(osm).stopped(), 0, "TestError/unexpected-stopped-before");
vm.prank(chief.hat()); osmMom.stop(ilk);
assertEq(OsmAbstract(osm).stopped(), 1, "TestError/unexpected-stopped-after");
}
}

0 comments on commit b8443d6

Please sign in to comment.