Skip to content

Commit

Permalink
test: log
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli authored and psychobunny committed Apr 19, 2021
1 parent 2e9efc0 commit 80ef108
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]]');
Expand Down

0 comments on commit 80ef108

Please sign in to comment.