Skip to content

Commit d1e04b7

Browse files
jankeromnesroboquat
authored andcommitted
[db-sync] Increase 2 test timeouts
Increases default test timeout 2s → 10s for these two slow 'Basic unidirectional replication' tests: - 'Should overwrite outdated values and keep newer ones intact' - 'Should pick up from the last replication time'
1 parent 8e13017 commit d1e04b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/ee/db-sync/src/tests/basic-replication.spec.db.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ describe("Basic unidirectional replication", () => {
100100

101101
it("Should replicate with an end date");
102102

103-
it("Should overwrite outdated values and keep newer ones intact", async () => {
103+
it("Should overwrite outdated values and keep newer ones intact", async function () {
104+
this.timeout(10000);
104105
await query(
105106
source,
106107
`INSERT INTO names VALUES ("9fa18735-c43b-4651-81c5-ddfbdee1035c", "Foo Old", "1970-01-01 00:00:01.001", 0)`,
@@ -161,7 +162,8 @@ describe("Basic unidirectional replication", () => {
161162
expect(Date.now() - new Date(lastExport[0].value).getTime()).to.be.greaterThan(0);
162163
});
163164

164-
it("Should pick up from the last replication time", async () => {
165+
it("Should pick up from the last replication time", async function () {
166+
this.timeout(10000);
165167
await query(
166168
source,
167169
`INSERT INTO names VALUES ("9fa18735-c43b-4651-81c5-ddfbdee1035c", "Foo", "1970-01-01 00:00:01.001", 0)`,

0 commit comments

Comments
 (0)