From b2a6aa4d9fdb404c0aec031c66d9ed2cfe8e5814 Mon Sep 17 00:00:00 2001 From: brandonabyrd Date: Tue, 10 Nov 2026 12:50:18 -0600 Subject: [PATCH] test(recent-imagery): strengthen half coverage --- changelog.d/1540-recent-imagery-dateline.md | 10 ++++------ src/layers/recentImagery/dateline-halves.test.mjs | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/changelog.d/1540-recent-imagery-dateline.md b/changelog.d/1540-recent-imagery-dateline.md index f896c11ace..a81494959c 100644 --- a/changelog.d/1540-recent-imagery-dateline.md +++ b/changelog.d/1540-recent-imagery-dateline.md @@ -2,11 +2,9 @@ into a box about 360° wide and refused as too large; it is now the short box across ±180°, which lists the days for that box and drapes a pinned day on both sides. Availability probes both sides of ±180° (a day counts as present when either - side has data, and sides confirmed empty are not draped — a - side confirmed empty never lands on the map), each side is bounded by its - own deadline and both sides' answers are heard — sides proven present all - drape, a side that stalls only bounds the day for its deadline instead of - being cancelled, and a side whose transport ignores abort is timed out at - the deadline itself, voice accepts named areas across the dateline, and EXPORT is + side has data, and sides confirmed empty are not draped). Each side has a + deadline so a stalled probe cannot indefinitely block the day; unknown or + failed sides are not treated as empty. Voice accepts named areas across the + dateline, and EXPORT is disabled up front with the reason, since Worldview Snapshots cannot draw a box that crosses ±180° (Byrd-IT, #1540). diff --git a/src/layers/recentImagery/dateline-halves.test.mjs b/src/layers/recentImagery/dateline-halves.test.mjs index 13a1ba8244..ce26ab2a02 100644 --- a/src/layers/recentImagery/dateline-halves.test.mjs +++ b/src/layers/recentImagery/dateline-halves.test.mjs @@ -230,9 +230,9 @@ test('both present halves are preserved: presentBoxes carries every data half an [EAST_HALF, WEST_HALF].find((h) => sameBox(h, half)), ); assert.deepEqual( - drapes.length, - 2, - 'each present half maps to one probe half', + new Set(drapes), + new Set([EAST_HALF, WEST_HALF]), + 'each present half maps to a distinct probe half', ); assert.ok(response.blob, 'the answer stays a readable response'); const blob = await response.blob();