Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit tests #263

Open
nicopernas opened this issue Nov 26, 2024 · 0 comments
Open

Fix unit tests #263

nicopernas opened this issue Nov 26, 2024 · 0 comments
Assignees

Comments

@nicopernas
Copy link
Contributor

Running forge test on v4.0.11 I get the following error

Ran 26 test suites in 282.46ms (300.22ms CPU time): 118 tests passed, 1 failed, 16 skipped (135 total tests)

Failing tests:
Encountered 1 failing test in test/Fork/Dispatcher.deploy.t.sol:DispatcherDeployTest
[FAIL: setup failed: vm.envAddress: environment variable "DispatcherProxy" not found] setUp() (gas: 0)

Looks like the DispatcherDeployTest test needs a set of env variables to work. Even when those are set, the test reverts

export OwnerAddress=0x4dF6EB2EC570B58cC64f540247A8AdFA11F1Cf63
export OptimisticLightClient=0x4dF6EB2EC570B58cC64f540247A8AdFA11F1Cf63
export UCProxy=0x4dF6EB2EC570B58cC64f540247A8AdFA11F1Cf63
export DispatcherProxy=0x4dF6EB2EC570B58cC64f540247A8AdFA11F1Cf63
...

Ran 26 test suites in 285.93ms (300.10ms CPU time): 118 tests passed, 1 failed, 16 skipped (135 total tests)

Failing tests:
Encountered 1 failing test in test/Fork/Dispatcher.deploy.t.sol:DispatcherDeployTest
[FAIL: setup failed: EvmError: Revert] setUp() (gas: 0)

Looks like this test is not meant to be run this way? or maybe it needs a different set up? In any case, let's fix it so we get a clean test execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants