From f52cabcedaf7e0c5960d2ffb779382f81946770f Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Sat, 29 May 2021 22:54:33 +0530 Subject: [PATCH] fix timeout for mocha test --- tests/mocha.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/mocha.test.js b/tests/mocha.test.js index 5fe6aed..21f1723 100644 --- a/tests/mocha.test.js +++ b/tests/mocha.test.js @@ -78,7 +78,8 @@ describe('test', function () { assert.deepEqual(apiResult,{ batchcomplete: '' }); }); - it('api with login', async () => { + it('api with login', async function () { + this.timeout(10000); if (process.env.WMF_USERNAME && process.env.WMF_PASSWORD) { let api = new mw.Api({ ajax: { @@ -91,7 +92,7 @@ describe('test', function () { } else { console.error('No environment variables passed for authentication!'); // soft pass } - }, 10000); + }); it('user', async () => { let rights = await mw.user.getRights();