You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests using the test --v command (regardless of the number of v flags), the terminal process fails to terminate if there are numerous contract calls during the test execution. This issue persists even when attempting to close the terminal using Ctrl + C.
Steps to Reproduce
Set up a Hardhat project with multiple tests involving numerous contract calls.
Run the tests using npx hardhat test --v (or --vv, --vvv, etc.).
Wait for the tests to complete.
Attempt to end the process or close the terminal.
Expected Behavior
The terminal process should end immediately after the tests complete or when interrupted with Ctrl + C.
Actual Behavior
The terminal process continues to run indefinitely, and Ctrl + C does not terminate it. The only way to end the process is to forcibly close the terminal window.
This issue has been reproduced on multiple machines with different configurations.
The problem seems to occur only when there are many contract calls during test execution.
The issue is consistent across different levels of verbosity (-v, -vv, -vvv).
Possible Related Factors
High volume of contract calls during tests
Interaction between hardhat-tracer and the test runner
Potential memory leak or unhandled asynchronous operations
Any assistance in resolving this issue would be greatly appreciated. Please let me know if you need any additional information or if you'd like me to run any specific diagnostics.
The text was updated successfully, but these errors were encountered:
This is the first time using hardhat-tracer and hardhat-deal plugins together in this project.
The tests make use of the deal(token, account, amount) function provided by hardhat-deal.
Hi @Confucian-e , could you provide a minimal test case to reproduce the bug pls?
Something where deal is used and a contract call is made, leaving the process hanging. My first lead is to test whether the process still hangs if deal usage is removed
I tried using both hardhat-deal along with hardhat-tracer in a fresh project. It seems to work, I do notice that deal function makes a bunch of balanceOf calls, but couldn't reproduce the hanging.
Description
When running tests using the
test --v
command (regardless of the number of v flags), the terminal process fails to terminate if there are numerous contract calls during the test execution. This issue persists even when attempting to close the terminal usingCtrl + C
.Steps to Reproduce
Set up a Hardhat project with multiple tests involving numerous contract calls.
Run the tests using
npx hardhat test --v
(or --vv, --vvv, etc.).Wait for the tests to complete.
Attempt to end the process or close the terminal.
Expected Behavior
The terminal process should end immediately after the tests complete or when interrupted with
Ctrl + C
.Actual Behavior
The terminal process continues to run indefinitely, and
Ctrl + C
does not terminate it. The only way to end the process is to forcibly close the terminal window.Environment
Operating System: MacOS
Node.js version: v20.15.0
package.json
Additional Context
This issue has been reproduced on multiple machines with different configurations.
The problem seems to occur only when there are many contract calls during test execution.
The issue is consistent across different levels of verbosity (-v, -vv, -vvv).
Possible Related Factors
High volume of contract calls during tests
Interaction between hardhat-tracer and the test runner
Potential memory leak or unhandled asynchronous operations
Any assistance in resolving this issue would be greatly appreciated. Please let me know if you need any additional information or if you'd like me to run any specific diagnostics.
The text was updated successfully, but these errors were encountered: