foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Fuzz Test not catch all console.log

Open spicysquid168 opened this issue 4 years ago • 2 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.1.0 (7575f10 2022-02-02T00:24:39.751829+00:00)

What command(s) is the bug in?

test :; forge clean && forge test --optimize --optimize-runs 1000000 -vv

Operating System

macOS (amd)

Describe the bug

It seems like forge test not catching all log when doing fuzz test.

2565-02-02 11 10 55

2565-02-02 11 11 00

image

As you can see in the image above, the test case is reverted in withdraw function which call after deposit, but it only caught console.log up until lock() but not locked and other following console.log.

spicysquid168 avatar Feb 02 '22 04:02 spicysquid168

Hi! Could you provide a repository we can use which reproduces the issue? Ideally the code should be minified to only reproduce the bug, and not have other specific logic for your use case!

gakonst avatar Feb 12 '22 16:02 gakonst

Closing this as stale - please reopen if this is still the case on the latest forge since we rewrote our testing backend including traces

onbjerg avatar Mar 28 '22 14:03 onbjerg