From f13c6c451ca7a8dd51fa590572e512530526f687 Mon Sep 17 00:00:00 2001 From: Chris Simon Date: Mon, 20 Nov 2023 23:52:24 +0000 Subject: [PATCH] test(vscode): improve resilient when running from vscode launch by increasing timeout --- src/vscode/contextive/test/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vscode/contextive/test/index.js b/src/vscode/contextive/test/index.js index a87bacb6..e4b74e30 100644 --- a/src/vscode/contextive/test/index.js +++ b/src/vscode/contextive/test/index.js @@ -3,12 +3,14 @@ const Mocha = require('mocha'); const glob = require('glob'); function getMochaOpts() { + const defaultOpts = {timeout: 5000}; if (process.env.MOCHA_FGREP) { return { - fgrep: process.env.MOCHA_FGREP + fgrep: process.env.MOCHA_FGREP, + ...defaultOpts }; } - return {}; + return defaultOpts; } function run() {