Skip to content

Commit

Permalink
test: update fixtures (#7421)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Mar 18, 2024
1 parent f686391 commit db8ea58
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions crates/forge/tests/cli/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ interface IERC20 {
function name() external view returns (string memory);
}
contract USDCCallingTest is Test {
contract USDTCallingTest is Test {
function test() public {
vm.createSelectFork("<url>");
IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48).name();
IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7).name();
}
}
"#
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/fixtures/can_test_repeatedly.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ No files changed, compilation skipped

Ran 2 tests for test/Counter.t.sol:CounterTest
[PASS] testFuzz_SetNumber(uint256) (runs: 256, μ: 26521, ~: 28387)
[PASS] test_Increment() (gas: 31225)
[PASS] test_Increment() (gas: 31325)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 9.42ms

Ran 1 test suite: 2 tests passed, 0 failed, 0 skipped (2 total tests)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Solc 0.8.23 finished in 1.95s
Compiler run successful!

Ran 1 test for test/Contract.t.sol:ContractTest
[PASS] test() (gas: 70404)
[PASS] test() (gas: 70360)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.21s

Ran 1 test suite: 1 tests passed, 0 failed, 0 skipped (1 total tests)
12 changes: 5 additions & 7 deletions crates/forge/tests/fixtures/repro_6531.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ Compiling 1 files with 0.8.23

Compiler run successful!

Ran 1 test for test/Contract.t.sol:USDCCallingTest
[PASS] test() (gas: 16821)
Ran 1 test for test/Contract.t.sol:USDTCallingTest
[PASS] test() (gas: 9559)
Traces:
[16821] USDCCallingTest::test()
[9559] USDTCallingTest::test()
├─ [0] VM::createSelectFork("<url>")
│ └─ ← 0
├─ [10350] 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48::name() [staticcall]
│ ├─ [3061] 0x43506849D7C04F9138D1A2050bbF3A0c054402dd::name() [delegatecall]
│ │ └─ ← "USD Coin"
│ └─ ← "USD Coin"
├─ [3110] 0xdAC17F958D2ee523a2206206994597C13D831ec7::name() [staticcall]
│ └─ ← "Tether USD"
└─ ← ()

Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.43s
Expand Down

0 comments on commit db8ea58

Please sign in to comment.