Skip to content

Commit

Permalink
Remove timeouts for 400s
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Sep 24, 2024
1 parent 1a5f4a0 commit 07a08f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions packages/rest-api/src/tests/bridgeLimitsRoute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Get Bridge Limits Route', () => {
'message',
'No valid route exists for the chain/token combination'
)
}, 10_000)
})

it('should return 400 for unsupported fromChain', async () => {
const response = await request(app).get('/bridgeLimits').query({
Expand All @@ -61,7 +61,7 @@ describe('Get Bridge Limits Route', () => {
'message',
'Unsupported fromChain'
)
}, 10_000)
})

it('should return 400 for unsupported toChain', async () => {
const response = await request(app).get('/bridgeLimits').query({
Expand All @@ -72,7 +72,7 @@ describe('Get Bridge Limits Route', () => {
})
expect(response.status).toBe(400)
expect(response.body.error).toHaveProperty('message', 'Unsupported toChain')
}, 10_000)
})

it('should return 400 for missing fromToken', async () => {
const response = await request(app).get('/bridgeLimits').query({
Expand All @@ -82,7 +82,7 @@ describe('Get Bridge Limits Route', () => {
})
expect(response.status).toBe(400)
expect(response.body.error).toHaveProperty('field', 'fromToken')
}, 10_000)
})

it('should return 400 for missing toToken', async () => {
const response = await request(app).get('/bridgeLimits').query({
Expand All @@ -92,5 +92,5 @@ describe('Get Bridge Limits Route', () => {
})
expect(response.status).toBe(400)
expect(response.body.error).toHaveProperty('field', 'toToken')
}, 10_000)
})
})
12 changes: 6 additions & 6 deletions packages/rest-api/src/tests/bridgeRoute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Bridge Route with Real Synapse Service', () => {
'message',
'No valid route exists for the chain/token combination'
)
}, 15000)
})

it('should return 400 for unsupported fromChain, with error message', async () => {
const response = await request(app).get('/bridge').query({
Expand All @@ -85,7 +85,7 @@ describe('Bridge Route with Real Synapse Service', () => {
'message',
'Unsupported fromChain'
)
}, 10000)
})

it('should return 400 for unsupported toChain, with error message', async () => {
const response = await request(app).get('/bridge').query({
Expand All @@ -97,7 +97,7 @@ describe('Bridge Route with Real Synapse Service', () => {
})
expect(response.status).toBe(400)
expect(response.body.error).toHaveProperty('message', 'Unsupported toChain')
}, 10000)
})

it('should return 400 for invalid fromToken address, with error message', async () => {
const response = await request(app).get('/bridge').query({
Expand All @@ -112,7 +112,7 @@ describe('Bridge Route with Real Synapse Service', () => {
'message',
'Invalid fromToken address'
)
}, 10000)
})

it('should return 400 for token not supported on specified chain, with error message', async () => {
const response = await request(app).get('/bridge').query({
Expand All @@ -127,7 +127,7 @@ describe('Bridge Route with Real Synapse Service', () => {
'message',
'Invalid fromToken address'
)
}, 10000)
})

it('should return 400 for missing amount, with error message', async () => {
const response = await request(app).get('/bridge').query({
Expand All @@ -138,5 +138,5 @@ describe('Bridge Route with Real Synapse Service', () => {
})
expect(response.status).toBe(400)
expect(response.body.error).toHaveProperty('field', 'amount')
}, 10000)
})
})

0 comments on commit 07a08f4

Please sign in to comment.