Skip to content

Commit

Permalink
test: fix reporter tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Mar 23, 2024
1 parent 42dc613 commit f9562d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/reporter-cucumber-html/features/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const test = base.extend<{
setTestTimeout: [
async ({}, use, testInfo) => {
if (testInfo.title.includes('timeout')) {
testInfo.setTimeout(600);
// Increase timeout on CI.
// Otherwise we get "test timeout" during initialization and it breaks tests
testInfo.setTimeout(process.env.CI ? 1000 : 500);
}
await use();
},
Expand Down

0 comments on commit f9562d8

Please sign in to comment.