mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Merge main through #1495 into the renderer seam
Brings in radio country coverage (#1206), the restored format scope (#1527), the zoom-out guard (#1522), voice geometry and OSM places (#846) and paired traffic flow density (#1495). What main added that reached Cesium or the viewer now goes through the renderer: - The zoom-out guard reads the Cesium camera controller's own input, so it moves into the adapter (src/render/cesium/zoomOutGuard.js). The application installs it through the scene's viewer hooks, and a scene whose renderer gives no guard starts without one. - OSM places draws its points as a draw set, clamped to the ground. - The voice area actions read the view box and the view centre from the camera port. - The voice workflow harness is test support, named as such where the recent-imagery doubles are.
This commit is contained in:
commit
fd42fc0afd
136 files changed
+17399
-1120
No files matched your search
@@ -54,9 +54,24 @@ function probeTransport(status) {
|
||||
return { seen, fetchImpl };
|
||||
}
|
||||
const stalled = (init) => new Promise((_, reject) => init.signal.addEventListener('abort', () => reject(init.signal.reason)));
|
||||
const stalledWithReferencedWait = (init) =>
|
||||
new Promise((_, reject) => {
|
||||
// AbortSignal.timeout() is intentionally unref'd in Node. Keep this one
|
||||
// timeout test alive until the signal fires so an isolated test process
|
||||
// cannot exit with a still-pending assertion.
|
||||
const keepAlive = setTimeout(() => {}, 1000);
|
||||
init.signal.addEventListener(
|
||||
'abort',
|
||||
() => {
|
||||
clearTimeout(keepAlive);
|
||||
reject(init.signal.reason);
|
||||
},
|
||||
{ once: true },
|
||||
);
|
||||
});
|
||||
|
||||
test('a stalled capability probe times out and queries proceed; no re-probe during backoff', async () => {
|
||||
const { seen, fetchImpl } = probeTransport(stalled);
|
||||
const { seen, fetchImpl } = probeTransport(stalledWithReferencedWait);
|
||||
const services = createApplicationRequestServices({ fetchImpl, boundaryProbe: { timeoutMs: 20, retryMs: 60_000 } });
|
||||
const started = Date.now();
|
||||
assert.deepEqual(await services.boundaries.query('fixture'), []);
|
||||
|
||||
Reference in new issue
Block a user