mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 21:45:08 +08:00
fix: add retry 2 for failing e2e tests
This commit is contained in:
@ -51,10 +51,7 @@ globalSetup(async () => {
|
||||
const config: Config = {
|
||||
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
|
||||
timeout: 30000, // Each test is given 30 seconds.
|
||||
}
|
||||
|
||||
if (process.env.CI) {
|
||||
config.retries = 2 // Retry failing tests 2 times
|
||||
retries: 2, // Retry failing tests 2 times
|
||||
}
|
||||
|
||||
setConfig(config)
|
||||
|
Reference in New Issue
Block a user