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.
This commit is contained in:
Marc-André Bombeck committed 2026-10-29 23:36:32 +01:00
1 parent cd98db82eb
commit a79a04f3ef
1 file changed
+6 -1
+6 -1
View File
@@ -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, "<time>");
for (const leak of [
"Home Sweet",
"Office Tower",