From 2bf2742ca061de531e10d554a994fae1ed54430e Mon Sep 17 00:00:00 2001 From: Bilawal Sidhu Date: Tue, 15 Sep 2026 11:26:37 -0500 Subject: [PATCH] test: isolate tracking from public installation source outages --- scripts/track-regression.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/track-regression.mjs b/scripts/track-regression.mjs index b5f6286e5..6e0c22515 100644 --- a/scripts/track-regression.mjs +++ b/scripts/track-regression.mjs @@ -365,6 +365,19 @@ async function main() { lastMessageAt: null, })); } + // Contacts also enables mapped installations. This tracking harness + // does not test installation acquisition; a valid empty viewport keeps + // public Overpass outages out of aircraft/satellite tracking results. + // Preserve the real response shape and all console-error assertions. + if (isAppRequest && url.pathname === '/api/military-installations') { + return Promise.resolve(jsonResponse({ + elements: [], + saturated: false, + elementCap: 700, + retrievedAt: new Date().toISOString(), + status: 'ready', + })); + } // CelesTrak TLE groups. Served from a fixed two-satellite catalog so // the satellite assertions are deterministic and the run never depends // on an upstream that rate-limits (it was answering 403 the night this