Test reverts with Assertion failed.
when reverting to a fork snapshot, without any assertion
#3792
Closed
2 tasks done
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
P-high
Priority: high
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (15204ec 2022-11-29T00:07:45.954046141Z)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
Report
testWtf
reverts with reasonAssertion failed.
, whereas no assertion is explicitly performed within itforge-std
is at the latest commit:ea1c1f4022f6a7924887106caa64499317295493
Findings
It seems to be a very specific case, because the test passes as soon as:
test
address is moved to theTestSetup
contracttest
address isaddress(1)
,address(2)
, ...testWtf
is commented outThe test fails even if a call is performed on behalf of the pranked address
test
, right aftervm.prank
The text was updated successfully, but these errors were encountered: