From 57d0775ec16dfe823a822a8e2379bc7e3d655b50 Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Fri, 17 Jan 2025 19:53:00 +0400 Subject: [PATCH] Increase browserSocketTimeout parameter for karma tests --- karma.config.d/karma.conf.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/karma.config.d/karma.conf.js b/karma.config.d/karma.conf.js index ebef84a00..8ef3e6cac 100644 --- a/karma.config.d/karma.conf.js +++ b/karma.config.d/karma.conf.js @@ -4,6 +4,10 @@ module.exports = function(config) { // default timeout 60_000, but looks like it is not enough for macOS on GitHub runner // increasing the timeout should help to reduce number of failures captureTimeout: 120_000, + // the default value is 20_000 + // according to the doc, the socket timeout can cause similar error as captureTimeout + // https://karma-runner.github.io/6.4/config/configuration-file.html#browsersockettimeout + browserSocketTimeout: 120_000, }); };