Skip to content

Commit f52cabc

Browse files
committed
fix timeout for mocha test
1 parent df389fb commit f52cabc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/mocha.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ describe('test', function () {
7878
assert.deepEqual(apiResult,{ batchcomplete: '' });
7979
});
8080

81-
it('api with login', async () => {
81+
it('api with login', async function () {
82+
this.timeout(10000);
8283
if (process.env.WMF_USERNAME && process.env.WMF_PASSWORD) {
8384
let api = new mw.Api({
8485
ajax: {
@@ -91,7 +92,7 @@ describe('test', function () {
9192
} else {
9293
console.error('No environment variables passed for authentication!'); // soft pass
9394
}
94-
}, 10000);
95+
});
9596

9697
it('user', async () => {
9798
let rights = await mw.user.getRights();

0 commit comments

Comments
 (0)