test(ci): allow 2 retries on CI (#25197)

This commit is contained in:
Liam DeBeasi
2022-04-26 23:18:13 +05:45
committed by GitHub
parent 8f460cb80d
commit cf9ae4cf2a

View File

@@ -85,7 +85,7 @@ const config: PlaywrightTestConfig = {
},
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
retries: 0,
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */