From a79a04f3ef3070a2a070742b2113d62598d9af96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 29 Oct 2026 23:36:32 +0100 Subject: [PATCH] test(dawarich): take clock times out before looking for coordinates The privacy check looks for the fixture's latitude 52.52 in every stored row, and a timestamp written at :52.52x seconds holds the same digits. It failed once in CI with no coordinate stored. Clock times are masked first; a coordinate in any field is still found. --- tests/integration/dawarich-context.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/dawarich-context.test.ts b/tests/integration/dawarich-context.test.ts index 04a1e1855..a0f8ddb1a 100644 --- a/tests/integration/dawarich-context.test.ts +++ b/tests/integration/dawarich-context.test.ts @@ -304,7 +304,12 @@ describe("Dawarich daily values", () => { UNION ALL SELECT row_to_json(s)::text FROM "integration_statuses" s `; - const dump = rows.map((r) => r.row).join("\n"); + // Clock times go first: a timestamp written at :52.52x seconds holds the + // latitude's digits and failed the check without any coordinate stored. + const dump = rows + .map((r) => r.row) + .join("\n") + .replace(/\d{2}:\d{2}:\d{2}\.\d+/g, "