mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: testing timeout on failing test
This commit is contained in:
@@ -487,6 +487,7 @@ describe('API', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should not error out when called', async () => {
|
it('should not error out when called', async () => {
|
||||||
|
this.timeout(0);
|
||||||
await setupData();
|
await setupData();
|
||||||
|
|
||||||
if (csrfToken) {
|
if (csrfToken) {
|
||||||
@@ -513,6 +514,7 @@ describe('API', async () => {
|
|||||||
redirect: 'manual',
|
redirect: 'manual',
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body,
|
body: body,
|
||||||
|
timeout: 10000,
|
||||||
});
|
});
|
||||||
} else if (type === 'form') {
|
} else if (type === 'form') {
|
||||||
result = await helpers.uploadFile(url, pathLib.join(__dirname, './files/test.png'), {}, jar, csrfToken);
|
result = await helpers.uploadFile(url, pathLib.join(__dirname, './files/test.png'), {}, jar, csrfToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user