-
Couldn't load subscription status.
- Fork 2.2k
chore: set seed for flaky tests, use etherscan api key #12255
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -188,6 +188,7 @@ forgetest!(invariant_calldata_dictionary, |prj, cmd| { | |
| prj.wipe_contracts(); | ||
| prj.insert_utils(); | ||
| prj.update_config(|config| { | ||
| config.fuzz.seed = Some(U256::from(1)); | ||
| config.invariant.depth = 10; | ||
| }); | ||
|
|
||
|
|
@@ -293,7 +294,7 @@ Ran 1 test for test/InvariantCalldataDictionary.t.sol:InvariantCalldataDictionar | |
| [SEQUENCE] | ||
| invariant_owner_never_changes() ([RUNS]) | ||
|
|
||
| [STATS] | ||
| ... | ||
|
|
||
| Suite result: FAILED. 0 passed; 1 failed; 0 skipped; [ELAPSED] | ||
|
|
||
|
|
@@ -1056,35 +1057,17 @@ contract InvariantRollForkStateTest is Test { | |
|
|
||
| assert_invariant(cmd.args(["test", "-j1"])).failure().stdout_eq(str![[r#" | ||
| ... | ||
| Ran 1 test for test/InvariantRollFork.t.sol:InvariantRollForkStateTest | ||
| [FAIL: wrong supply] | ||
| [SEQUENCE] | ||
| invariant_fork_handler_state() ([RUNS]) | ||
|
|
||
| [STATS] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suspect some cases where [STATS] redact doesn't work as expected, I trimmed the output only to relevant |
||
|
|
||
| Suite result: FAILED. 0 passed; 1 failed; 0 skipped; [ELAPSED] | ||
|
|
||
| Ran 1 test for test/InvariantRollFork.t.sol:InvariantRollForkBlockTest | ||
| [FAIL: too many blocks mined] | ||
| [SEQUENCE] | ||
| invariant_fork_handler_block() ([RUNS]) | ||
|
|
||
| [STATS] | ||
|
|
||
| Suite result: FAILED. 0 passed; 1 failed; 0 skipped; [ELAPSED] | ||
|
|
||
| Ran 2 test suites [ELAPSED]: 0 tests passed, 2 failed, 0 skipped (2 total tests) | ||
|
|
||
| Failing tests: | ||
| Encountered 1 failing test in test/InvariantRollFork.t.sol:InvariantRollForkBlockTest | ||
| [FAIL: too many blocks mined] | ||
| [SEQUENCE] | ||
| ... | ||
| invariant_fork_handler_block() ([RUNS]) | ||
|
|
||
| Encountered 1 failing test in test/InvariantRollFork.t.sol:InvariantRollForkStateTest | ||
| [FAIL: wrong supply] | ||
| [SEQUENCE] | ||
| ... | ||
| invariant_fork_handler_state() ([RUNS]) | ||
|
|
||
| Encountered a total of 2 failing tests, 0 tests succeeded | ||
|
|
@@ -1098,6 +1081,7 @@ forgetest_init!(invariant_scrape_values, |prj, cmd| { | |
| prj.wipe_contracts(); | ||
| prj.update_config(|config| { | ||
| config.invariant.depth = 10; | ||
| config.fuzz.seed = Some(U256::from(100u32)); | ||
| }); | ||
|
|
||
| prj.add_test( | ||
|
|
@@ -1173,24 +1157,6 @@ contract FindFromLogValueTest is Test { | |
|
|
||
| assert_invariant(cmd.args(["test", "-j1"])).failure().stdout_eq(str![[r#" | ||
| ... | ||
| Ran 1 test for test/InvariantScrapeValues.t.sol:FindFromReturnValueTest | ||
| [FAIL: value from return found] | ||
| [SEQUENCE] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above, left only relevant |
||
| invariant_value_not_found() ([RUNS]) | ||
|
|
||
| [STATS] | ||
|
|
||
| Suite result: FAILED. 0 passed; 1 failed; 0 skipped; [ELAPSED] | ||
|
|
||
| Ran 1 test for test/InvariantScrapeValues.t.sol:FindFromLogValueTest | ||
| [FAIL: value from logs found] | ||
| [SEQUENCE] | ||
| invariant_value_not_found() ([RUNS]) | ||
|
|
||
| [STATS] | ||
|
|
||
| Suite result: FAILED. 0 passed; 1 failed; 0 skipped; [ELAPSED] | ||
|
|
||
| Ran 2 test suites [ELAPSED]: 0 tests passed, 2 failed, 0 skipped (2 total tests) | ||
|
|
||
| Failing tests: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if set env var to
ETHERSCAN_API_KEYthen it's picked up by testdata test wich fails expected config (and other inline tests), hence used differentETHERSCAN_KEYkey