Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRaslan committed Jul 10, 2024
1 parent acb222c commit e7852f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ MD004:
MD013:
line_length: 120


# Ordered list item prefix
MD029:
style: one
Expand Down
8 changes: 4 additions & 4 deletions __tests__/ping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Ping urls', () => {
'http://localhost:4002',
'http://localhost:4003'
]
const timeout = 500 // 1sec
const timeout = 1000 // 1sec

await expect(async () => ping(urls, timeout)).rejects.toThrow(
'Failed to wait on the requested resources'
Expand All @@ -28,7 +28,7 @@ describe('Ping urls', () => {
it('Try to ping available urls with 404 status code', async () => {
const urls = ['https://atomica.ai', 'https://auth.courier.atomica.ai']

const timeout = 500 // 1sec
const timeout = 1000 // 1sec

await expect(async () => ping(urls, timeout, 404)).rejects.toThrow(
'Failed to wait on the requested resources'
Expand All @@ -38,14 +38,14 @@ describe('Ping urls', () => {
it('Try to ping available urls with 200 status code, and not secure', async () => {
const urls = ['https://atomica.ai', 'https://auth.courier.atomica.ai']

const timeout = 500 // 1sec
const timeout = 1000 // 1sec

await expect(ping(urls, timeout, 200, false)).resolves.not.toThrow()
})
it('Try to ping available url with 200 status code,scure, no logs', async () => {
const urls = ['https://atomica.ai']

const timeout = 500 // 1sec
const timeout = 1000 // 1sec

await expect(ping(urls, timeout, 200, true, false)).resolves.not.toThrow()
})
Expand Down

0 comments on commit e7852f9

Please sign in to comment.