Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions integration-tests/tests/src/tests/sync/geospatial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -308,6 +310,8 @@ describe(`GeoSpatial`, () => {
});

it("GeoBox basic", async function (this: RealmContext) {
this.longTimeout();

let box: GeoBox = {
bottomLeft: [-1, -1],
topRight: [1, 1],
Expand Down Expand Up @@ -362,6 +366,8 @@ describe(`GeoSpatial`, () => {
});

it("GeoPolygon basic", async function (this: RealmContext) {
this.longTimeout();

let polygon: GeoPolygon = {
outerRing: [
[-2, -2],
Expand Down Expand Up @@ -453,6 +459,8 @@ describe(`GeoSpatial`, () => {
});

it("Alternative GeoPoint", async function (this: RealmContext) {
this.longTimeout();

//Circle
let circle: GeoCircle = {
center: [-32.34, -25],
Expand Down Expand Up @@ -512,6 +520,8 @@ describe(`GeoSpatial`, () => {
});

it("Alternative GeoPolygon", async function (this: RealmContext) {
this.longTimeout();

//Polygon
let polygon: CanonicalGeoPolygon = {
type: "Polygon",
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -588,6 +600,8 @@ describe(`GeoSpatial`, () => {
});

it("Coordinate Substitution", async function (this: RealmContext) {
this.longTimeout();

//Circle
const circle: GeoCircle = {
center: [0, 0],
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions integration-tests/tests/src/tests/sync/sync-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down