Skip to content

Commit

Permalink
push on timeouts a bit for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtarsi committed Dec 24, 2023
1 parent 426a6e7 commit 20c96a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/side-runtime/src/__tests__/playback.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ describe('Playback', () => {
await psetTimeout(2)
await playback.pause()

expect(Date.now() - d).toBeLessThan(30)
expect(Date.now() - d).toBeLessThan(200)
})

it('should be able to stop mid-delay', async () => {
Expand Down Expand Up @@ -1711,7 +1711,7 @@ describe('Playback', () => {
await psetTimeout(2)
await playback.stop()

expect(Date.now() - d).toBeLessThan(30)
expect(Date.now() - d).toBeLessThan(200)
})

it('should be able to abort mid-delay', async () => {
Expand Down Expand Up @@ -1743,7 +1743,7 @@ describe('Playback', () => {
await psetTimeout(2)
await playback.abort()

expect(Date.now() - d).toBeLessThan(30)
expect(Date.now() - d).toBeLessThan(200)
})
})

Expand Down

0 comments on commit 20c96a1

Please sign in to comment.