From 809e987f3246afd9c56d87c8419940ec9342a897 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Wed, 17 Jul 2024 07:07:23 -0500 Subject: [PATCH] Extended timeouts on image size test (#20616) ref e626dd9 There has been some flakiness in Github CI with the new tests for the probe library. We'll start with extending timeouts in case CI is running particularly slowly. --- ghost/core/test/unit/server/lib/image/image-size.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/core/test/unit/server/lib/image/image-size.test.js b/ghost/core/test/unit/server/lib/image/image-size.test.js index 1ec27f2e8c..c3bf288684 100644 --- a/ghost/core/test/unit/server/lib/image/image-size.test.js +++ b/ghost/core/test/unit/server/lib/image/image-size.test.js @@ -410,7 +410,7 @@ describe('lib/image: image size', function () { const imageSize = new ImageSize({config: { get: (key) => { if (key === 'times:getImageSizeTimeoutInMS') { - return 10; + return 50; } } }, tpl: {}, storage: {}, storageUtils: { @@ -535,7 +535,7 @@ describe('lib/image: image size', function () { }, urlUtils: {}, request: {}, probe(reqUrl, options) { // simulate probe being unresponsive by making the timeout longer than the request - return probe(reqUrl, {...options, response_timeout: 10}); + return probe(reqUrl, {...options, response_timeout: 50}); }}); imageSize.getImageSizeFromUrl(url)