mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix tests timeout
This commit is contained in:
@ -786,7 +786,7 @@ describe('HTTP Request Unit Tests', () => {
|
|||||||
} finally {
|
} finally {
|
||||||
await new Promise(resolve => testServer.close(resolve));
|
await new Promise(resolve => testServer.close(resolve));
|
||||||
}
|
}
|
||||||
});
|
}, 30000);
|
||||||
|
|
||||||
test('disables keep-alive when forever is false', async () => {
|
test('disables keep-alive when forever is false', async () => {
|
||||||
const mockCtx = createMockContext({
|
const mockCtx = createMockContext({
|
||||||
@ -1312,7 +1312,7 @@ describe('HTTP Request Unit Tests', () => {
|
|||||||
} finally {
|
} finally {
|
||||||
await new Promise(resolve => testServer.close(resolve));
|
await new Promise(resolve => testServer.close(resolve));
|
||||||
}
|
}
|
||||||
});
|
}, 30000);
|
||||||
|
|
||||||
test('successfully routes POST request through a real proxy', async () => {
|
test('successfully routes POST request through a real proxy', async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user