From 4a3871f6f061a9323fb9ce24f4e938e597b0d4fb Mon Sep 17 00:00:00 2001 From: Prashant Shubham Date: Wed, 7 Oct 2020 12:35:34 +0530 Subject: [PATCH] Rerunning the pipeline --- test/integration/file-uploads/request-body.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/file-uploads/request-body.test.js b/test/integration/file-uploads/request-body.test.js index 66c7e5967..667a4d3f4 100644 --- a/test/integration/file-uploads/request-body.test.js +++ b/test/integration/file-uploads/request-body.test.js @@ -10,16 +10,16 @@ var fs = require('fs'), createLargeTestFileForPlatform = function () { switch (process.platform) { case 'linux': - sh.exec('dd if=/dev/zero of=' + TEST_UPLOAD_FILE_LARGE + ' bs=1M count=1'); + sh.exec('dd if=/dev/zero of=' + TEST_UPLOAD_FILE_LARGE + ' bs=50M count=1'); break; case 'win32': // 52428800 bytes corresponds to 50 MB file size as fsutil takes size param in bytes - sh.exec('fsutil file createnew ' + TEST_UPLOAD_FILE_LARGE + ' 1048576'); + sh.exec('fsutil file createnew ' + TEST_UPLOAD_FILE_LARGE + ' 52428800'); break; case 'darwin': - sh.exec('mkfile 1M ' + TEST_UPLOAD_FILE_LARGE); + sh.exec('mkfile 50M ' + TEST_UPLOAD_FILE_LARGE); break; default: @@ -729,7 +729,7 @@ describe('file upload in request body', function () { var resp = JSON.parse(testrun.response.getCall(0).args[2].stream.toString()); expect(resp).to.nested.include({ - 'headers.content-length': '1048576' + 'headers.content-length': '52428800' }); expect(resp.headers['content-type']).to.equal('application/json'); }); @@ -741,7 +741,7 @@ describe('file upload in request body', function () { expect(resp.files).to.have.property('upload-file-large.json'); expect(resp).to.nested.include({ - 'headers.content-length': '1048802' + 'headers.content-length': '52429026' }); expect(resp.headers['content-type']).to.match(/multipart\/form-data/); });