From 44a30883cc030ec08193bc63c190434677c4ed35 Mon Sep 17 00:00:00 2001 From: Prashant Shubham Date: Mon, 5 Oct 2020 13:10:15 +0530 Subject: [PATCH] Updated CHANGELOG.yaml and fixed browser integration test failure --- CHANGELOG.yaml | 5 +++++ test/integration/file-uploads/request-body.test.js | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.yaml b/CHANGELOG.yaml index 8d1c7cf2e..3e953d6c1 100644 --- a/CHANGELOG.yaml +++ b/CHANGELOG.yaml @@ -1,3 +1,8 @@ +master: + date: 2020-10-05 + chores: + - Added integration test for large file upload + 7.26.6: date: 2020-09-16 chores: diff --git a/test/integration/file-uploads/request-body.test.js b/test/integration/file-uploads/request-body.test.js index c681df05b..ae1bc653e 100644 --- a/test/integration/file-uploads/request-body.test.js +++ b/test/integration/file-uploads/request-body.test.js @@ -650,13 +650,14 @@ describe('file upload in request body', function () { }); }); - describe('should upload large files correctly', function () { + (IS_BROWSER ? describe.skip : describe)('should upload large files correctly', function () { var testUploadFile = 'test/fixtures/upload-file-large.json'; afterEach(function () { sh.rm('-rf', testUploadFile); }); + // eslint-disable-next-line mocha/no-sibling-hooks before(function (done) { this.enableTimeouts(false); if (IS_DARWIN) { @@ -689,6 +690,7 @@ describe('file upload in request body', function () { }); }); + // eslint-disable-next-line mocha/no-identical-title it('should complete the run', function () { expect(testrun).to.be.ok; sinon.assert.calledOnce(testrun.start); @@ -697,7 +699,7 @@ describe('file upload in request body', function () { sinon.assert.callCount(testrun.request, 1); }); - it('should upload the file correctly', function () { + it('should upload the large file correctly', function () { sinon.assert.calledWith(testrun.request.getCall(0), null); var resp = JSON.parse(testrun.response.getCall(0).args[2].stream.toString());