Skip to content

Commit e47f3cc

Browse files
committed
test: bump threshold
1 parent 9f281b1 commit e47f3cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/openapi-ts-tests/test/performance.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const toOutputPath = (name: string) =>
1212
path.resolve(__dirname, 'generated', name);
1313

1414
describe('performance', () => {
15-
it('creates client under 1000ms', async () => {
15+
it('creates client under 1500ms', async () => {
1616
Performance.clear();
1717

1818
await createClient({
@@ -27,10 +27,10 @@ describe('performance', () => {
2727
Performance.measure('createClient');
2828
const measures = Performance.getEntriesByName('createClient');
2929

30-
expect(measures[0]!.duration).toBeLessThanOrEqual(1000);
30+
expect(measures[0]!.duration).toBeLessThanOrEqual(1500);
3131
});
3232

33-
it('parses spec under 1000ms', async () => {
33+
it('parses spec under 1500ms', async () => {
3434
Performance.clear();
3535

3636
await createClient({
@@ -45,10 +45,10 @@ describe('performance', () => {
4545
Performance.measure('parser');
4646
const measures = Performance.getEntriesByName('parser');
4747

48-
expect(measures[0]!.duration).toBeLessThanOrEqual(1000);
48+
expect(measures[0]!.duration).toBeLessThanOrEqual(1500);
4949
});
5050

51-
it('parses spec under 1000ms (experimental)', async () => {
51+
it('parses spec under 1500ms (experimental)', async () => {
5252
Performance.clear();
5353

5454
await createClient({
@@ -63,6 +63,6 @@ describe('performance', () => {
6363
Performance.measure('parser');
6464
const measures = Performance.getEntriesByName('parser');
6565

66-
expect(measures[0]!.duration).toBeLessThanOrEqual(1000);
66+
expect(measures[0]!.duration).toBeLessThanOrEqual(1500);
6767
});
6868
});

0 commit comments

Comments
 (0)