From 21fb8590e5ff0f11fa91381b90b278f952071536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 23 Apr 2023 18:59:18 -0400 Subject: [PATCH] test: remove old comment --- test/uploads.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/uploads.js b/test/uploads.js index 11aea1bedd..1eecfe9f1f 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -87,8 +87,7 @@ describe('Upload Controllers', () => { const oldValue = meta.config.allowedFileExtensions; meta.config.allowedFileExtensions = 'png,jpg,bmp,html'; require('../src/middleware/uploads').clearCache(); - // why / 2? see: helpers.uploadFile for a weird quirk where we actually upload 2 files per upload in our tests. - const times = (meta.config.uploadRateLimitThreshold) + 1; + const times = meta.config.uploadRateLimitThreshold + 1; async.timesSeries(times, (i, next) => { helpers.uploadFile(`${nconf.get('url')}/api/post/upload`, path.join(__dirname, '../test/files/503.html'), {}, jar, csrf_token, (err, res, body) => { if (i + 1 >= times) {