Skip to content

Commit f217252

Browse files
committed
Set a default timeout of 10 seconds
1 parent b78c71d commit f217252

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/07-test-timeouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/do
44

55
Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests.
66

7-
*There is no default timeout.*
7+
The default timeout is 10 seconds.
88

99
You can configure timeouts using the `--timeout` [command line option](./05-command-line.md), or in the [configuration](./06-configuration.md). They can be set in a human-readable way:
1010

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ exports.run = async () => { // eslint-disable-line complexity
330330
require: arrify(combined.require),
331331
serial: combined.serial,
332332
snapshotDir: combined.snapshotDir ? path.resolve(projectDir, combined.snapshotDir) : null,
333-
timeout: combined.timeout,
333+
timeout: combined.timeout || '10s',
334334
updateSnapshots: combined.updateSnapshots,
335335
workerArgv: argv['--']
336336
});

0 commit comments

Comments
 (0)