Skip to content

Commit

Permalink
feat: increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov committed Apr 1, 2022
1 parent ad881b7 commit 8891364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-functionality/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const handler = async (): Promise<void> => {
await runTests()
break
} catch (error) {
console.error(error)
console.error(`Failed attempt ${index}:`, error)
if (index === 2) {
process.exit(error?.exitCode || 1)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web-functionality/src/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ describe('Smoke tests', () => {

// Expect results count is shown correctly
await expect(page).toMatchElement('[data-testid="streaming-progress-count"]', { text: '1 result' })
})
}, 5000) // Bigger timeout is required to avoid flakes. Default is 500ms.
})

0 comments on commit 8891364

Please sign in to comment.