Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the unit test of bond #43

Merged
merged 2 commits into from
Jul 27, 2024
Merged

Conversation

JustXxx
Copy link

@JustXxx JustXxx commented Jul 22, 2024

forge test --mc FaultDisputeGameN_Test --mt .[bB]ond.

Ran 7 tests for test/dispute/FaultDisputeGameN.t.sol:FaultDisputeGameN_Test
[PASS] testFuzz_challengeRootL2Block_receivesBond_succeeds(bytes32,bytes32,uint256) (runs: 65, μ: 907156, ~: 907156)
[PASS] test_getRequiredBond_outOfBounds_reverts() (gas: 12465)
[PASS] test_getRequiredBond_succeeds() (gas: 36816)
[PASS] test_move_incorrectBondAmount_reverts() (gas: 33335)
[PASS] test_resolve_bondPayoutsSeveralActors_succeeds() (gas: 1407849)
[PASS] test_resolve_bondPayouts_succeeds() (gas: 1401801)
[PASS] test_resolve_leftmostBondPayout_succeeds() (gas: 1596079)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 473.35ms (178.32ms CPU time)

forge test --mc FaultDisputeGameN_Test --mt test_claimCredit_claimAlreadyResolved_reverts

Ran 1 test for test/dispute/FaultDisputeGameN.t.sol:FaultDisputeGameN_Test
[PASS] test_claimCredit_claimAlreadyResolved_reverts() (gas: 835658)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 327.36ms (874.00µs CPU time)

@JustXxx JustXxx requested review from qizhou and dajuguan July 22, 2024 12:23
@dajuguan
Copy link

All tests passed. LGTM

@JustXxx JustXxx merged commit 848b954 into bill/unittest_for_clock Jul 27, 2024
2 checks passed
@JustXxx JustXxx deleted the bill/unittest_for_bond branch July 27, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants