-
Notifications
You must be signed in to change notification settings - Fork 250
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
Better support Hardhat tests in --parallel mode #645
Comments
Note: There is currently no built-in way to uniquely identify Hardhat Network instances. We could use |
+1
|
There is now a way to implement this with the Haven't found docs but here's the type that will be returned by the RPC method: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Parallel mode, each thread gets its own Hardhat Network instance, yet they all have the same chain id so they use the same manifest file. I don't think this will cause errors with the manifest file because due to being a development network we basically ignore the contents if they don't match expectations, but it will for sure cause unnecessary contention and lead to errors such as NomicFoundation/hardhat#3093.
This should probably be fixed along with #465, by detecting different instances and using a different manifest file for each.
The text was updated successfully, but these errors were encountered: