foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Gas tracks failed

Open pythonberg1997 opened this issue 3 years ago • 1 comments

Component

Forge

Have you ensured that all of these are up to date?

  • [X] Foundry
  • [X] Foundryup

What version of Foundry are you on?

forge 0.2.0 (307576d 2022-08-29T00:05:05.72678Z)

What command(s) is the bug in?

forge test

Operating System

macOS (Apple Silicon)

Describe the bug

I report issue#2984. After upgrade by foundryup, revertTo works well. But when I use the same config as mentioned in #2984, the gas output are all zero like below:

[PASS] testClaimReward() (gas: 0)
[PASS] testReceive(uint256) (runs: 1024, μ: 0, ~: 0)

pythonberg1997 avatar Aug 29 '22 09:08 pythonberg1997

After more tests I found that it's not gas tracking failed. It's the whole test not run at all. Whatever I put in the test, it always PASS and the gas used is always ZERO.

pythonberg1997 avatar Aug 29 '22 10:08 pythonberg1997

Marking this as stale as it very likely been resolved over time.

If you are still experiencing the issue please re-open the ticket.

zerosnacks avatar Jun 26 '24 11:06 zerosnacks