mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Retry E2E tests on failure if running in CI. (#995)
* Retry E2E tests in CI * newsfile
This commit is contained in:
parent
d550077f3e
commit
283375c6c1
1
changelog.d/995.misc
Normal file
1
changelog.d/995.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Retry e2e tests in CI due to container creation flakiness.
|
@ -9,6 +9,7 @@ const config: Config = {
|
|||||||
// The root directory that Jest should scan for tests and modules within
|
// The root directory that Jest should scan for tests and modules within
|
||||||
rootDir: "spec-lib",
|
rootDir: "spec-lib",
|
||||||
testTimeout: 60000,
|
testTimeout: 60000,
|
||||||
|
setupFiles: ["<rootDir>/spec/setup-jest.js"],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
2
spec/setup-jest.ts
Normal file
2
spec/setup-jest.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// In CI, the network creation for the homerunner containers can race (https://github.com/matrix-org/complement/issues/720).
|
||||||
|
jest.retryTimes(process.env.CI ? 3 : 1);
|
Loading…
x
Reference in New Issue
Block a user