Skip to content

Commit

Permalink
chore: inc idb time clamps in tests due to CI slowness
Browse files Browse the repository at this point in the history
  • Loading branch information
svidgen committed Jan 18, 2023
1 parent 999f4ae commit 245e5c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/datastore/__tests__/IndexedDBAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ describe('IndexedDB benchmarks', () => {

// actual time on a decent dev machine is around 15ms, compared
// to over 130ms when the optimization is disabled.
expect(time).toBeLessThan(50);
expect(time).toBeLessThan(100);
});

test('deep joins are within time limits expected if indexes are being used using custom PK', async () => {
Expand Down Expand Up @@ -552,7 +552,7 @@ describe('IndexedDB benchmarks', () => {

// actual time on a decent dev machine is around 20ms, compared
// to over 150ms when the optimization is disabled.
expect(time).toBeLessThan(50);
expect(time).toBeLessThan(100);
});

test('wide joins operate within expeted time limits', async () => {
Expand Down Expand Up @@ -583,7 +583,7 @@ describe('IndexedDB benchmarks', () => {
expect(fetched.length).toBe(100);
}, 1);

expect(time).toBeLessThan(50);
expect(time).toBeLessThan(100);
});

test('wide joins with outer level ORs operate within expected time limits', async () => {
Expand Down Expand Up @@ -615,7 +615,7 @@ describe('IndexedDB benchmarks', () => {
expect(fetched.length).toBe(100);
}, 1);

expect(time).toBeLessThan(50);
expect(time).toBeLessThan(100);
});

test('semi-wide joins (limit 7) with outer level ORs operate within expected time limits', async () => {
Expand Down Expand Up @@ -650,6 +650,6 @@ describe('IndexedDB benchmarks', () => {
expect(fetched.length).toBe(size);
}, 1);

expect(time).toBeLessThan(50);
expect(time).toBeLessThan(100);
});
});

0 comments on commit 245e5c5

Please sign in to comment.