Skip to content

Commit f23240e

Browse files
committed
Upping default test timeout to 30s
1 parent 5bff7e7 commit f23240e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hardhat.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ module.exports = {
6464
maxMethodDiff: 25, // CI will fail if gas usage is > than this %
6565
outputFile: 'test-gas-used.log',
6666
},
67+
mocha: {
68+
timeout: 30e3, // 30s
69+
},
6770
};

hardhat/tasks/task-test.js

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ task('test')
1111
.setAction(async (taskArguments, hre, runSuper) => {
1212
const { gas, grep, native, gasOutputFile } = taskArguments;
1313

14-
// apply a 90s timeout unless already set (for coverage say)
15-
hre.config.mocha.timeout = hre.config.mocha.timeout || 90e3;
16-
1714
if (native) {
1815
hre.config.solc.native = true;
1916
}

0 commit comments

Comments
 (0)