From fe479e063ef253c8180b2eab7ab9be86177d427d Mon Sep 17 00:00:00 2001 From: Franco Victorio Date: Fri, 18 Feb 2022 12:00:00 -0300 Subject: [PATCH] Improve explanation about potential timeouts --- docs/guides/waffle-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/waffle-testing.md b/docs/guides/waffle-testing.md index e430be9de9..c591a07fde 100644 --- a/docs/guides/waffle-testing.md +++ b/docs/guides/waffle-testing.md @@ -137,7 +137,7 @@ Most of the time, running your tests serially or in parallel should produce the - In serial mode, all the test files share the same instance of the [Hardhat Runtime Environment](/advanced/hardhat-runtime-environment.html), but in parallel mode each test file will have its own fresh instance. For example, if one test file deploys a contract, then that deployment won't exist when running the other test files. - The `.only` modifier doesn't work in parallel mode. As an alternative, you can use [`--grep`](https://mochajs.org/#-grep-regexp-g-regexp) to run specific tests. -- The duration of individual tests might be different, because parallel mode uses more system resources. There's a chance that some tests start timing out for that reason. You can increase the tests timeout if you run into this problem. +- Because parallel mode uses more system resources, the duration of individual tests might be longer, so there's a chance that some tests start timing out for that reason. If you run into this problem, you can increase the tests timeout in the [Mocha section of your Hardhat config](/config/#mocha-configuration) or using [`this.timeout()`](https://mochajs.org/#timeouts) in your tests. - The order in which tests are executed is non-deterministic. There are some other limitations related to parallel mode. You can read more about them in [Mocha's docs](https://mochajs.org/#parallel-tests). And if you are running into some issue when using parallel mode, you can check their [Troubleshooting parallel mode](https://mochajs.org/#troubleshooting-parallel-mode) section.