From ff50682412dd635c4d234e5806f44cc3959d8490 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 17 Mar 2021 15:31:05 -0400 Subject: [PATCH] tests: Increase import/export test timeouts --- src/tests/backend/specs/api/importexport.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/backend/specs/api/importexport.js b/src/tests/backend/specs/api/importexport.js index 6b2fb3ac..6c74cd97 100644 --- a/src/tests/backend/specs/api/importexport.js +++ b/src/tests/backend/specs/api/importexport.js @@ -226,6 +226,8 @@ const testImports = { }; describe(__filename, function () { + this.timeout(1000); + before(async function () { agent = await common.init(); }); Object.keys(testImports).forEach((testName) => { @@ -238,7 +240,6 @@ describe(__filename, function () { }); } it('createPad', function (done) { - this.timeout(200); agent.get(`${endPoint('createPad')}&padID=${testPadId}`) .expect((res) => { if (res.body.code !== 0) throw new Error('Unable to create new Pad'); @@ -248,7 +249,6 @@ describe(__filename, function () { }); it('setHTML', function (done) { - this.timeout(150); agent.get(`${endPoint('setHTML')}&padID=${testPadId}` + `&html=${encodeURIComponent(test.input)}`) .expect((res) => { @@ -259,7 +259,6 @@ describe(__filename, function () { }); it('getHTML', function (done) { - this.timeout(150); agent.get(`${endPoint('getHTML')}&padID=${testPadId}`) .expect((res) => { const gotHtml = res.body.data.html; @@ -283,7 +282,6 @@ describe(__filename, function () { }); it('getText', function (done) { - this.timeout(100); agent.get(`${endPoint('getText')}&padID=${testPadId}`) .expect((res) => { const gotText = res.body.data.text;