Skip to content

Commit 35c35fe

Browse files
authored
Firestore: transactions.test.ts: increase the timeout of some tests to reduce flakiness (#7399)
1 parent a6d516d commit 35c35fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/firestore-compat/test/transactions.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ apiDescribe('Database transactions', (persistence: boolean) => {
241241
.run(get, set1, set2)
242242
.expectDoc({ foo: 'bar2' });
243243
});
244-
});
244+
}).timeout(10000);
245245

246246
it('runs transactions after getting non-existent document', async () => {
247247
return integrationHelpers.withTestDb(persistence, async db => {
@@ -280,7 +280,7 @@ apiDescribe('Database transactions', (persistence: boolean) => {
280280
.run(get, set1, set2)
281281
.expectDoc({ foo: 'bar2' });
282282
});
283-
});
283+
}).timeout(10000);
284284

285285
it('runs transactions on existing document', async () => {
286286
return integrationHelpers.withTestDb(persistence, async db => {

packages/firestore/test/integration/api/transactions.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ apiDescribe('Database transactions', (persistence: boolean) => {
314314
.run(get, set1, set2)
315315
.expectDoc({ foo: 'bar2' });
316316
});
317-
});
317+
}).timeout(10000);
318318

319319
// This test is identical to the test above, except that withNonexistentDoc()
320320
// is replaced by withDeletedDoc(), to guard against regression of
@@ -355,7 +355,7 @@ apiDescribe('Database transactions', (persistence: boolean) => {
355355
.expectDoc({ foo: 'bar2' });
356356
await tt.withDeletedDoc().run(get, set1, set2).expectDoc({ foo: 'bar2' });
357357
});
358-
});
358+
}).timeout(10000);
359359

360360
it('runs transactions on existing document', async () => {
361361
return withTestDb(persistence, async db => {

0 commit comments

Comments
 (0)