Skip to content

Commit 6b6e322

Browse files
committed
[tests] Decrease SQLIte flakiness
1 parent 698cbeb commit 6b6e322

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

test/jest/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jest.retryTimes(5);
1+
jest.retryTimes(10);
22

33
afterEach(
44
() => (global.env.assertionCalls += expect.getState().assertionCalls),

test/unit/persisters/__snapshots__/mergeable.test.ts.snap

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7700,20 +7700,20 @@ exports[`Persists to/from sqlite3 autoSaves: delCell 1`] = `
77007700
],
77017701
"c2": [
77027702
"",
7703-
"Nn1JUF3----7JQY8",
7704-
1964059388,
7703+
"Nn1JUFc----7JQY8",
7704+
4036784140,
77057705
],
77067706
},
77077707
"",
7708-
756126043,
7708+
1580055069,
77097709
],
77107710
},
77117711
"",
7712-
3943446976,
7712+
3198578267,
77137713
],
77147714
},
77157715
"",
7716-
3161300725,
7716+
3962176564,
77177717
],
77187718
[
77197719
{
@@ -7724,12 +7724,12 @@ exports[`Persists to/from sqlite3 autoSaves: delCell 1`] = `
77247724
],
77257725
"v2": [
77267726
2,
7727-
"Nn1JUF1----7JQY8",
7728-
830262161,
7727+
"Nn1JUFJ----7JQY8",
7728+
3659329950,
77297729
],
77307730
},
77317731
"",
7732-
4272434271,
7732+
143526703,
77337733
],
77347734
]
77357735
`;
@@ -7749,20 +7749,20 @@ exports[`Persists to/from sqlite3 autoSaves: delValue 1`] = `
77497749
],
77507750
"c2": [
77517751
"",
7752-
"Nn1JUF3----7JQY8",
7753-
1964059388,
7752+
"Nn1JUFc----7JQY8",
7753+
4036784140,
77547754
],
77557755
},
77567756
"",
7757-
756126043,
7757+
1580055069,
77587758
],
77597759
},
77607760
"",
7761-
3943446976,
7761+
3198578267,
77627762
],
77637763
},
77647764
"",
7765-
3161300725,
7765+
3962176564,
77667766
],
77677767
[
77687768
{
@@ -7773,12 +7773,12 @@ exports[`Persists to/from sqlite3 autoSaves: delValue 1`] = `
77737773
],
77747774
"v2": [
77757775
"",
7776-
"Nn1JUF5----7JQY8",
7777-
1157804434,
7776+
"Nn1JUFw----7JQY8",
7777+
1709187352,
77787778
],
77797779
},
77807780
"",
7781-
1587362687,
7781+
2494864705,
77827782
],
77837783
]
77847784
`;
@@ -7905,12 +7905,12 @@ exports[`Persists to/from sqlite3 autoSaves: setValues 1`] = `
79057905
],
79067906
"v2": [
79077907
2,
7908-
"Nn1JUF1----7JQY8",
7909-
830262161,
7908+
"Nn1JUFJ----7JQY8",
7909+
3659329950,
79107910
],
79117911
},
79127912
"",
7913-
4272434271,
7913+
143526703,
79147914
],
79157915
]
79167916
`;

test/unit/persisters/common/databases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const SQLITE_MERGEABLE_VARIANTS: Variants = {
154154
),
155155
),
156156
async ([db]: [Database, string]) => db.close(),
157-
undefined,
157+
20,
158158
undefined,
159159
undefined,
160160
true,

0 commit comments

Comments
 (0)