Skip to content

Commit 035e24d

Browse files
committed
fixup: update config for test retries
1 parent abeff06 commit 035e24d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/config.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ globalSetup(async () => {
5151
const config: Config = {
5252
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
5353
timeout: 30000, // Each test is given 30 seconds.
54-
retries: 2, // Retry failing tests 2 times
54+
retries: 3, // Retry failing tests 2 times
55+
}
56+
57+
if (process.env.CI) {
58+
config.retries = 2
5559
}
5660

5761
setConfig(config)

0 commit comments

Comments
 (0)