tests: timeouts for tests (#4773)

This commit is contained in:
John McLear 2021-02-13 19:00:06 +00:00 committed by GitHub
parent f9ec49d7ac
commit e585d321f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 368 additions and 4 deletions

View file

@ -43,6 +43,7 @@ describe(__filename, function () {
});
it('can obtain valid openapi definition document', async function () {
this.timeout(15000);
await agent.get('/api/openapi.json')
.expect(200)
.expect((res) => {
@ -56,6 +57,7 @@ describe(__filename, function () {
});
it('supports jsonp calls', async function () {
this.timeout(150);
await agent.get(`${endPoint('createPad')}&jsonp=jsonp_1&padID=${testPadId}`)
.expect(200)
.expect('Content-Type', /javascript/)