Skip to content

Commit

Permalink
Increase test delays
Browse files Browse the repository at this point in the history
  • Loading branch information
odavid committed May 15, 2021
1 parent f4ab450 commit c16e19f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/__tests__/test_simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Simple', () => {
const message = 'simple - A successful post'
const post = await service.createPost(message)

await delay(10)
await delay(100)

expect(post.id).toBeGreaterThan(0)
expect(service.success).toEqual('true')
Expand All @@ -46,7 +46,7 @@ describe('Simple', () => {
const message = 'simple - An unsuccessful post'
expect(service.createPost(message, true)).rejects.toThrow()

await delay(10);
await delay(100)

expect(service.success).toEqual('false')
const dbPost = await service.getPostByMessage(message)
Expand Down Expand Up @@ -115,7 +115,7 @@ describe('Simple', () => {
return createdPost;
})

await delay(10);
await delay(100)

expect(post.id).toBeGreaterThan(0)
expect(commitHookCalled).toBeTruthy();
Expand Down

0 comments on commit c16e19f

Please sign in to comment.