Skip to content

Commit

Permalink
Fix timeout in http-request test
Browse files Browse the repository at this point in the history
  • Loading branch information
dennypradipta committed Jan 16, 2023
1 parent 02229fe commit 30a2341
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/http-request/http-request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('probingHTTP', () => {
{
url: 'http://localhost:4000/get_key',
body: JSON.parse('{}'),
timeout: 10,
timeout: 10_000,
},
{
url: 'http://localhost:4000/verify',
Expand All @@ -89,7 +89,7 @@ describe('probingHTTP', () => {
Authorization: '{{ responses.[0].data.token }}',
},
body: JSON.parse('{}'),
timeout: 10,
timeout: 10_000,
},
]

Expand Down Expand Up @@ -138,7 +138,7 @@ describe('probingHTTP', () => {
body: JSON.parse(
'{"username": "example@example.com", "password": "example"}'
),
timeout: 10,
timeout: 10_000,
}

const flag = { followRedirects: 0 } as unknown as MonikaFlags
Expand Down Expand Up @@ -173,7 +173,7 @@ describe('probingHTTP', () => {
method: 'POST',
headers: { 'content-type': 'multipart/form-data' },
body: { username: 'john@example.com', password: 'drowssap' } as any,
timeout: 10,
timeout: 10_000,
}

const flags = { followRedirects: 0 } as unknown as MonikaFlags
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('probingHTTP', () => {
method: 'POST',
headers: { 'content-type': 'text/plain' },
body: 'multiline string\nexample' as any,
timeout: 10,
timeout: 10_000,
}

// act
Expand Down Expand Up @@ -255,7 +255,7 @@ describe('probingHTTP', () => {
method: 'POST',
headers: { 'content-type': 'text/yaml' },
body: { username: 'john@example.com', password: 'secret' } as any,
timeout: 10,
timeout: 10_000,
}

// act
Expand Down Expand Up @@ -297,7 +297,7 @@ describe('probingHTTP', () => {
method: 'POST',
headers: { 'content-type': 'application/xml' },
body: { username: 'john@example.com', password: 'secret' } as any,
timeout: 10,
timeout: 10_000,
}

// act
Expand Down Expand Up @@ -338,7 +338,7 @@ describe('probingHTTP', () => {
method: 'POST',
headers: { 'content-type': 'text/plain' },
body: 'multiline string\nexample' as any,
timeout: 10,
timeout: 10_000,
allowUnauthorized: true,
}

Expand Down

0 comments on commit 30a2341

Please sign in to comment.