makerdao / spells-mainnet

Staging repo for MakerDAO weekly executive spells
GNU Affero General Public License v3.0
108 stars 45 forks source link

make spell test base and move helper and setup there #200

Closed iamchrissmith closed 2 years ago

iamchrissmith commented 2 years ago

Moving setup, system correctness and helper functions to a test base

Tests pass locally at block 13557125

Screen Shot 2021-11-10 at 15 10 42
naszam commented 2 years ago

Test PASS (HardHat Fork pinned at block n. 13557125 #199)

dapp-test: rpc block: latest
Running 14 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 12236)
[PASS] testPsmParamChanges() (gas: 829439)
[PASS] test_auth_in_sources() (gas: 281473904579029)
[PASS] test_use_eta() (gas: 333453)
[PASS] testOneTimePaymentDistributions() (gas: 835058)
[PASS] testOnTime() (gas: 826879)
[PASS] test_nextCastTime() (gas: 334295)
[PASS] testFailTooEarly() (gas: 8479)
[PASS] test_bytecode_matches() (gas: 1239591)
[PASS] test_auth() (gas: 281473909709453)
[PASS] testSpellIsCast_GENERAL() (gas: 8654939)
[PASS] testFailWrongDay() (gas: 8633)
[PASS] testCastCost() (gas: 828677)
[PASS] testFailTooLate() (gas: 8787)