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

how to set a time limit when testing a smart contract? #423

Open
nicedinner2 opened this issue Jan 28, 2024 · 1 comment
Open

how to set a time limit when testing a smart contract? #423

nicedinner2 opened this issue Jan 28, 2024 · 1 comment

Comments

@nicedinner2
Copy link

When I test a contract using the command "ityfuzz evm -t './build/*'", the program keeps running indefinitely. How can I set a time limit or stop the program from running? I look forward to your answer. Thank you.

@shouc
Copy link
Contributor

shouc commented Jan 30, 2024

You can do something like this:

mac:

gtimeout 10s ityfuzz  evm -t './build/*'

linux:

timeout 10s ityfuzz  evm -t './build/*'

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