diff --git a/.github/workflows/pr-coverage.yml b/.github/workflows/pr-coverage.yml index f60e2a4302..f1a994a9e3 100644 --- a/.github/workflows/pr-coverage.yml +++ b/.github/workflows/pr-coverage.yml @@ -31,7 +31,7 @@ jobs: - name: Setup node version uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 20.11.1 cache: npm - name: Setup Wireit cache diff --git a/integration-tests/tests/src/tests/sync/geospatial.ts b/integration-tests/tests/src/tests/sync/geospatial.ts index d46577ca31..9418c743a1 100644 --- a/integration-tests/tests/src/tests/sync/geospatial.ts +++ b/integration-tests/tests/src/tests/sync/geospatial.ts @@ -254,6 +254,8 @@ describe(`GeoSpatial`, () => { describe("Base cases", () => { it("GeoCircle basic", async function (this: RealmContext) { + this.longTimeout(); + let circle: GeoCircle = { center: [0, 0], distance: 0.001, @@ -308,6 +310,8 @@ describe(`GeoSpatial`, () => { }); it("GeoBox basic", async function (this: RealmContext) { + this.longTimeout(); + let box: GeoBox = { bottomLeft: [-1, -1], topRight: [1, 1], @@ -362,6 +366,8 @@ describe(`GeoSpatial`, () => { }); it("GeoPolygon basic", async function (this: RealmContext) { + this.longTimeout(); + let polygon: GeoPolygon = { outerRing: [ [-2, -2], @@ -453,6 +459,8 @@ describe(`GeoSpatial`, () => { }); it("Alternative GeoPoint", async function (this: RealmContext) { + this.longTimeout(); + //Circle let circle: GeoCircle = { center: [-32.34, -25], @@ -512,6 +520,8 @@ describe(`GeoSpatial`, () => { }); it("Alternative GeoPolygon", async function (this: RealmContext) { + this.longTimeout(); + //Polygon let polygon: CanonicalGeoPolygon = { type: "Polygon", @@ -557,6 +567,8 @@ describe(`GeoSpatial`, () => { // Altitude throws an error in sync queries it("Altitude is supported but ignored", async function (this: RealmContext) { + this.longTimeout(); + let box: GeoBox = { bottomLeft: [50, 50, 10], topRight: [52, 52, 10], @@ -588,6 +600,8 @@ describe(`GeoSpatial`, () => { }); it("Coordinate Substitution", async function (this: RealmContext) { + this.longTimeout(); + //Circle const circle: GeoCircle = { center: [0, 0], @@ -647,6 +661,8 @@ describe(`GeoSpatial`, () => { // Not sync relevant, so we can skip doing this twice it("Distance conversions", function (this: RealmContext) { + this.longTimeout(); + //Test with about 60 centimeters accuracy const km = 20; expect(kmToRadians(km)).to.be.approximately(0.00313573007, 0.0000001); diff --git a/integration-tests/tests/src/tests/sync/sync-session.ts b/integration-tests/tests/src/tests/sync/sync-session.ts index 690cbde2f5..1a90b7f3ea 100644 --- a/integration-tests/tests/src/tests/sync/sync-session.ts +++ b/integration-tests/tests/src/tests/sync/sync-session.ts @@ -965,6 +965,7 @@ describe("SessionTest", () => { realm1.syncSession?.resume(); user1 = await this.app.logIn(credentials1); await realm1.syncSession?.uploadAllLocalChanges(); + await realm1.syncSession?.downloadAllServerChanges(); // create copy no. 2 of the realm realm1.writeCopyTo(outputConfig2);