From 80ef108220a0f3f5cf9605a20a079bd878a80f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 18 Apr 2021 20:03:00 -0400 Subject: [PATCH] test: log --- test/uploads.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/uploads.js b/test/uploads.js index e2f03803ab..b2ecd7ba71 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -83,6 +83,7 @@ describe('Upload Controllers', () => { // why / 2? see: helpers.uploadFile for a weird quirk where we actually upload 2 files per upload in our tests. async.times(meta.config.uploadRateLimitThreshold / 2, (i, next) => { helpers.uploadFile(`${nconf.get('url')}/api/post/upload`, path.join(__dirname, '../test/files/503.html'), {}, jar, csrf_token, (err, res, body) => { + console.log(i, res.statusCode, meta.config.uploadRateLimitThreshold, Date.now()); if (i + 1 > meta.config.uploadRateLimitThreshold / 2) { assert.strictEqual(res.statusCode, 500); assert.strictEqual(body.error, '[[error:upload-ratelimit-reached]]');