Skip to content

Commit

Permalink
fix timeout for mocha test
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed May 29, 2021
1 parent df389fb commit f52cabc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/mocha.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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();
Expand Down

0 comments on commit f52cabc

Please sign in to comment.