Skip to content

Commit 865a73a

Browse files
github-actions[bot]DaniPopesgrandizzy
authored
chore(tests): bump forge-std version (#11174)
* chore: bump forge-std version used for tests * Fixes --------- Co-authored-by: DaniPopes <[email protected]> Co-authored-by: grandizzy <[email protected]>
1 parent 99d3a41 commit 865a73a

File tree

6 files changed

+30
-43
lines changed

6 files changed

+30
-43
lines changed

crates/forge/tests/cli/cmd.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ contract GasReportFallbackTest is Test {
26772677
+========================================================================================================+
26782678
| Deployment Cost | Deployment Size | | | | |
26792679
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
2680-
| 117171 | 471 | | | | |
2680+
| 117159 | 471 | | | | |
26812681
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
26822682
| | | | | | |
26832683
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
@@ -2716,7 +2716,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
27162716
{
27172717
"contract": "test/DelegateProxyTest.sol:DelegateProxy",
27182718
"deployment": {
2719-
"gas": 117171,
2719+
"gas": 117159,
27202720
"size": 471
27212721
},
27222722
"functions": {
@@ -2928,7 +2928,7 @@ contract NestedDeploy is Test {
29282928
+============================================================================================+
29292929
| Deployment Cost | Deployment Size | | | | |
29302930
|-------------------------------------------+-----------------+-----+--------+-----+---------|
2931-
| 328961 | 1163 | | | | |
2931+
| 328949 | 1163 | | | | |
29322932
|-------------------------------------------+-----------------+-----+--------+-----+---------|
29332933
| | | | | | |
29342934
|-------------------------------------------+-----------------+-----+--------+-----+---------|
@@ -2983,7 +2983,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
29832983
{
29842984
"contract": "test/NestedDeployTest.sol:Parent",
29852985
"deployment": {
2986-
"gas": 328961,
2986+
"gas": 328949,
29872987
"size": 1163
29882988
},
29892989
"functions": {
@@ -3670,15 +3670,15 @@ forgetest_init!(gas_report_include_tests, |prj, cmd| {
36703670
+================================================================================================+
36713671
| Deployment Cost | Deployment Size | | | | |
36723672
|-----------------------------------------+-----------------+--------+--------+--------+---------|
3673-
| 1545498 | 7578 | | | | |
3673+
| 1544498 | 7573 | | | | |
36743674
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36753675
| | | | | | |
36763676
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36773677
| Function Name | Min | Avg | Median | Max | # Calls |
36783678
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36793679
| setUp | 218902 | 218902 | 218902 | 218902 | 1 |
36803680
|-----------------------------------------+-----------------+--------+--------+--------+---------|
3681-
| test_Increment | 54915 | 54915 | 54915 | 54915 | 1 |
3681+
| test_Increment | 51847 | 51847 | 51847 | 51847 | 1 |
36823682
╰-----------------------------------------+-----------------+--------+--------+--------+---------╯
36833683
36843684
@@ -3725,8 +3725,8 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
37253725
{
37263726
"contract": "test/Counter.t.sol:CounterTest",
37273727
"deployment": {
3728-
"gas": 1545498,
3729-
"size": 7578
3728+
"gas": 1544498,
3729+
"size": 7573
37303730
},
37313731
"functions": {
37323732
"setUp()": {
@@ -3738,10 +3738,10 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
37383738
},
37393739
"test_Increment()": {
37403740
"calls": 1,
3741-
"min": 54915,
3742-
"mean": 54915,
3743-
"median": 54915,
3744-
"max": 54915
3741+
"min": 51847,
3742+
"mean": 51847,
3743+
"median": 51847,
3744+
"max": 51847
37453745
}
37463746
}
37473747
}

crates/forge/tests/cli/test_cmd.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,15 +2912,13 @@ Traces:
29122912
│ └─ ← [Stop]
29132913
└─ ← [Stop]
29142914
2915-
[31851] CounterTest::test_Increment()
2915+
[28783] CounterTest::test_Increment()
29162916
├─ [22418] Counter::increment()
29172917
│ ├─ storage changes:
29182918
│ │ @ 0: 0 → 1
29192919
│ └─ ← [Stop]
29202920
├─ [424] Counter::number() [staticcall]
29212921
│ └─ ← [Return] 1
2922-
├─ [0] VM::assertEq(1, 1) [staticcall]
2923-
│ └─ ← [Return]
29242922
└─ ← [Stop]
29252923
29262924
Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
@@ -3056,7 +3054,7 @@ Traces:
30563054
│ └─ ← [Stop]
30573055
└─ ← [Stop]
30583056
3059-
[35178] SuppressTracesTest::test_increment_failure()
3057+
[35200] SuppressTracesTest::test_increment_failure()
30603058
├─ [0] console::log("test increment failure") [staticcall]
30613059
│ └─ ← [Stop]
30623060
├─ [22418] Counter::increment()
@@ -3101,7 +3099,7 @@ Traces:
31013099
│ └─ ← [Stop]
31023100
└─ ← [Stop]
31033101
3104-
[35178] SuppressTracesTest::test_increment_failure()
3102+
[35200] SuppressTracesTest::test_increment_failure()
31053103
├─ [0] console::log("test increment failure") [staticcall]
31063104
│ └─ ← [Stop]
31073105
├─ [22418] Counter::increment()
@@ -3117,15 +3115,13 @@ Logs:
31173115
test increment success
31183116
31193117
Traces:
3120-
[35229] SuppressTracesTest::test_increment_success()
3118+
[32164] SuppressTracesTest::test_increment_success()
31213119
├─ [0] console::log("test increment success") [staticcall]
31223120
│ └─ ← [Stop]
31233121
├─ [22418] Counter::increment()
31243122
│ └─ ← [Stop]
31253123
├─ [424] Counter::number() [staticcall]
31263124
│ └─ ← [Return] 1
3127-
├─ [0] VM::assertEq(1, 1) [staticcall]
3128-
│ └─ ← [Return]
31293125
└─ ← [Stop]
31303126
31313127
Suite result: FAILED. 1 passed; 1 failed; 0 skipped; [ELAPSED]
@@ -3932,8 +3928,6 @@ Traces:
39323928
│ └─ ← [Stop]
39333929
├─ [..] Counter::number() [staticcall]
39343930
│ └─ ← [Return] 1
3935-
├─ [0] VM::assertEq(1, 1) [staticcall]
3936-
│ └─ ← [Return]
39373931
├─ storage changes:
39383932
│ @ 31: 0x00000000000000000000006cdbd1b486b8fbd4140e8cd6daaed05be13ed91401 → 0x0000000000000000000000c4b957cd61beb9b9afd76204b30683edaaab51ec01
39393933
└─ ← [Stop]

crates/forge/tests/cli/test_optimizer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,6 @@ Traces:
14011401
├─ [..] Counter::number() [staticcall]
14021402
│ └─ ← [Return] 1
14031403
├─ [..] StdAssertions::assertEq(1, 1)
1404-
│ ├─ [0] VM::assertEq(1, 1) [staticcall]
1405-
│ │ └─ ← [Return]
14061404
│ └─ ←
14071405
└─ ← [Stop]
14081406

crates/forge/tests/fixtures/colored_traces.svg

Lines changed: 6 additions & 11 deletions
Loading

crates/forge/tests/it/invariant.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ contract BalanceAssumeTest is Test {
809809

810810
cmd.args(["test", "--mt", "invariant_balance"]).assert_failure().stdout_eq(str![[r#"
811811
...
812-
[FAIL: `vm.assume` rejected too many inputs (10 allowed)] invariant_balance() (runs: 10, calls: 5000, reverts: 0)
812+
[FAIL: `vm.assume` rejected too many inputs (10 allowed)] invariant_balance() (runs: 5, calls: 2500, reverts: 0)
813813
...
814814
"#]]);
815815
});
@@ -1114,9 +1114,9 @@ Failing tests:
11141114
Encountered 1 failing test in test/InvariantSequenceLenTest.t.sol:InvariantSequenceLenTest
11151115
[FAIL: invariant increment failure]
11161116
[Sequence] (original: 3, shrunk: 3)
1117-
sender=0x00000000000000000000000000000000000014ba addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
1117+
sender=0x00000000000000000000000000000000000014aD addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
11181118
sender=0x8ef7F804bAd9183981A366EA618d9D47D3124649 addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
1119-
sender=0x00000000000000000000000000000000000016b9 addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=setNumber(uint256) args=[284406551521730736391345481857560031052359183671404042152984097777 [2.844e65]]
1119+
sender=0x00000000000000000000000000000000000016Ac addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=setNumber(uint256) args=[284406551521730736391345481857560031052359183671404042152984097777 [2.844e65]]
11201120
invariant_increment() (runs: 0, calls: 0, reverts: 0)
11211121
11221122
Encountered a total of 1 failing tests, 0 tests succeeded
@@ -1136,11 +1136,11 @@ Failing tests:
11361136
Encountered 1 failing test in test/InvariantSequenceLenTest.t.sol:InvariantSequenceLenTest
11371137
[FAIL: invariant increment failure]
11381138
[Sequence] (original: 3, shrunk: 3)
1139-
vm.prank(0x00000000000000000000000000000000000014ba);
1139+
vm.prank(0x00000000000000000000000000000000000014aD);
11401140
Counter(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f).increment();
11411141
vm.prank(0x8ef7F804bAd9183981A366EA618d9D47D3124649);
11421142
Counter(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f).increment();
1143-
vm.prank(0x00000000000000000000000000000000000016b9);
1143+
vm.prank(0x00000000000000000000000000000000000016Ac);
11441144
Counter(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f).setNumber(284406551521730736391345481857560031052359183671404042152984097777);
11451145
invariant_increment() (runs: 0, calls: 0, reverts: 0)
11461146
@@ -1160,9 +1160,9 @@ Failing tests:
11601160
Encountered 1 failing test in test/InvariantSequenceLenTest.t.sol:InvariantSequenceLenTest
11611161
[FAIL: invariant_increment replay failure]
11621162
[Sequence] (original: 3, shrunk: 3)
1163-
sender=0x00000000000000000000000000000000000014ba addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
1163+
sender=0x00000000000000000000000000000000000014aD addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
11641164
sender=0x8ef7F804bAd9183981A366EA618d9D47D3124649 addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=increment() args=[]
1165-
sender=0x00000000000000000000000000000000000016b9 addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=setNumber(uint256) args=[284406551521730736391345481857560031052359183671404042152984097777 [2.844e65]]
1165+
sender=0x00000000000000000000000000000000000016Ac addr=[src/Counter.sol:Counter]0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f calldata=setNumber(uint256) args=[284406551521730736391345481857560031052359183671404042152984097777 [2.844e65]]
11661166
invariant_increment() (runs: 1, calls: 1, reverts: 1)
11671167
11681168
Encountered a total of 1 failing tests, 0 tests succeeded

testdata/forge-std-rev

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

0 commit comments

Comments
 (0)