Skip to content

Commit 3de3761

Browse files
committed
feat: change default timeout to 30000
1 parent c2fd342 commit 3de3761

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function cliHelp() {
1414
{green --screenshot-part} <string> Take a screenshot of the given part id (from diagram.json)
1515
{green --screenshot-time} <number> Time in simulation milliseconds to take the screenshot
1616
{green --screenshot-file} <string> File name to save the screenshot to (default: screenshot.png)
17-
{green --timeout} <number> Timeout in simulation milliseconds (default: 0 = none)
17+
{green --timeout} <number> Timeout in simulation milliseconds (default: 30000)
1818
{green --timeout-exit-code} <number> Process exit code when timeout is reached (default: 42)
1919
2020
{bold EXAMPLES}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function main() {
4343
const expectText = args['--expect-text'];
4444
const failText = args['--fail-text'];
4545
const scenarioFile = args['--scenario'];
46-
const timeout = args['--timeout'] ?? 0;
46+
const timeout = args['--timeout'] ?? 30000;
4747
const screenshotPart = args['--screenshot-part'];
4848
const screenshotTime = args['--screenshot-time'];
4949
const screenshotFile = args['--screenshot-file'] ?? 'screenshot.png';

0 commit comments

Comments
 (0)