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.
This commit is contained in:
Steve Larson 2024-07-17 07:07:23 -05:00 committed by GitHub
parent 7d8c76d82e
commit 809e987f32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)