Skip to content

Commit

Permalink
Merge pull request #98 from curvefi/fix/flaky-minter-test
Browse files Browse the repository at this point in the history
Fix flaky minter test
  • Loading branch information
iamdefinitelyahuman authored May 12, 2021
2 parents 354263f + 472dd26 commit d19dcf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unitary/Minter/test_minter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@


@pytest.fixture(scope="module", autouse=True)
def minter_setup(accounts, mock_lp_token, token, minter, gauge_controller, three_gauges):
def minter_setup(accounts, mock_lp_token, token, minter, gauge_controller, three_gauges, chain):
token.set_minter(minter, {"from": accounts[0]})

# ensure the tests all begin at the start of the epoch week
chain.mine(timestamp=(chain.time() / WEEK + 1) * WEEK)

# set types
for weight in TYPE_WEIGHTS:
gauge_controller.add_type(b"Liquidity", weight, {"from": accounts[0]})
Expand Down

0 comments on commit d19dcf2

Please sign in to comment.