From bc7697343c3e0829a2ff3209fc86aa0fd7d7b0ed Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 13 Jan 2021 17:52:06 +0200 Subject: [PATCH] test: add CLI timeout (#1727) --- tests/utils/call-cli.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/utils/call-cli.js b/tests/utils/call-cli.js index 47e73e4fe10..af18d4610c9 100644 --- a/tests/utils/call-cli.js +++ b/tests/utils/call-cli.js @@ -2,8 +2,13 @@ const execa = require('execa') const cliPath = require('./cli-path') +const CLI_TIMEOUT = 3e5 + const callCli = async function (args, execOptions) { - const { stdout } = await execa(cliPath, args, { windowsHide: true, windowsVerbatimArguments: true, ...execOptions }) + const { stdout } = await execa(cliPath, args, { + timeout: CLI_TIMEOUT, + ...execOptions, + }) return stdout }