Skip to content

Commit fe6321e

Browse files
committed
test: Increase timeout, hoping to reduce flakes in windows tests
1 parent 7358fe0 commit fe6321e

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

packages/case-core/src/index.http.request.verification.misconfigured.spec.ts

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,28 @@ describe('Server verification', () => {
6868
const runJestTestExpectingErrors =
6969
(errors: Record<string, Function>): RunTestCallback =>
7070
(testName: string, verify: () => Promise<unknown>): void => {
71-
it(`${testName}`, () =>
72-
verify().then(
73-
() => {
74-
if (errors[testName] !== undefined) {
75-
throw new Error(
76-
`Expected to throw a ${errors[testName]?.name}, but it didn't`,
77-
);
78-
}
79-
},
80-
(e) => {
81-
if (errors[testName] !== undefined) {
82-
// eslint-disable-next-line jest/no-conditional-expect
83-
expect(e).toBeInstanceOf(errors[testName]);
84-
} else {
85-
throw e;
86-
}
87-
},
88-
));
71+
it(
72+
`${testName}`,
73+
() =>
74+
verify().then(
75+
() => {
76+
if (errors[testName] !== undefined) {
77+
throw new Error(
78+
`Expected to throw a ${errors[testName]?.name}, but it didn't`,
79+
);
80+
}
81+
},
82+
(e) => {
83+
if (errors[testName] !== undefined) {
84+
// eslint-disable-next-line jest/no-conditional-expect
85+
expect(e).toBeInstanceOf(errors[testName]);
86+
} else {
87+
throw e;
88+
}
89+
},
90+
),
91+
60000,
92+
);
8993
};
9094

9195
// END JEST BOILERPLATE

0 commit comments

Comments
 (0)