Skip to content

Commit 9267395

Browse files
github-actions[bot]Briansphapkhryzerosnacks
authored
chore(tests): bump forge-std version (paritytech#340)
* chore: bump forge-std version used for tests * chore(tests): bump forge-std version (foundry-rs#12017) chore: bump forge-std version used for tests Co-authored-by: zerosnacks <[email protected]> * snapshots --------- Co-authored-by: Brianspha <[email protected]> Co-authored-by: Pavlo Khrystenko <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: zerosnacks <[email protected]> Co-authored-by: Pavlo Khrystenko <[email protected]>
1 parent 750080a commit 9267395

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

crates/forge/tests/cli/cmd.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//! Contains various tests for checking forge's commands
22
33
use crate::constants::*;
4-
use foundry_compilers::artifacts::{ConfigurableContractArtifact, Metadata, remappings::Remapping};
4+
use foundry_compilers::artifacts::{
5+
ConfigurableContractArtifact, EvmVersion, Metadata, remappings::Remapping,
6+
};
57
use foundry_config::{
68
BasicConfig, Chain, Config, FuzzConfig, InvariantConfig, SolidityErrorCode, parse_with_profile,
79
};
@@ -2677,7 +2679,7 @@ contract GasReportFallbackTest is Test {
26772679
+========================================================================================================+
26782680
| Deployment Cost | Deployment Size | | | | |
26792681
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
2680-
| 117159 | 471 | | | | |
2682+
| 117171 | 471 | | | | |
26812683
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
26822684
| | | | | | |
26832685
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
@@ -2716,7 +2718,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
27162718
{
27172719
"contract": "test/DelegateProxyTest.sol:DelegateProxy",
27182720
"deployment": {
2719-
"gas": 117159,
2721+
"gas": 117171,
27202722
"size": 471
27212723
},
27222724
"functions": {
@@ -2760,6 +2762,9 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
27602762

27612763
// <https://github.com/foundry-rs/foundry/issues/9858>
27622764
forgetest_init!(gas_report_fallback_with_calldata, |prj, cmd| {
2765+
prj.update_config(|c| {
2766+
c.evm_version = EvmVersion::Prague;
2767+
});
27632768
prj.add_test(
27642769
"FallbackWithCalldataTest.sol",
27652770
r#"

crates/forge/tests/it/invariant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ contract BalanceAssumeTest is Test {
811811

812812
cmd.args(["test", "--mt", "invariant_balance"]).assert_failure().stdout_eq(str![[r#"
813813
...
814-
[FAIL: `vm.assume` rejected too many inputs (10 allowed)] invariant_balance() (runs: 5, calls: 2500, reverts: 0)
814+
[FAIL: `vm.assume` rejected too many inputs (10 allowed)] invariant_balance() (runs: 2, calls: 1000, reverts: 0)
815815
...
816816
"#]]);
817817
});

testdata/forge-std-rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8bbcf6e3f8f62f419e5429a0bd89331c85c37824
1+
8e40513d678f392f398620b3ef2b418648b33e89

0 commit comments

Comments
 (0)