Skip to content

Node.js based forum software built for the modern web

test: testing timeout on failing test

Barış Soner Uşaklı82c8034cfbf4
diff --git a/test/api.js b/test/api.js
index d10433a88b..53699d0a20 100644
--- a/test/api.js
+++ b/test/api.js
@@ -487,6 +487,7 @@ describe('API', async () => {
});
it('should not error out when called', async () => {
+ this.timeout(0);
await setupData();
if (csrfToken) {
@@ -513,6 +514,7 @@ describe('API', async () => {
redirect: 'manual',
headers: headers,
body: body,
+ timeout: 10000,
});
} else if (type === 'form') {
result = await helpers.uploadFile(url, pathLib.join(__dirname, './files/test.png'), {}, jar, csrfToken);