mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
style: format slow-CI timing assertions
This commit is contained in:
1 parent
9501dc121b
commit
9d59e555c2
1 file changed
+3
-2
@@ -1059,7 +1059,7 @@ try {
|
|||||||
() => window.__godsEyeView.viewer.camera.positionCartographic.height,
|
() => window.__godsEyeView.viewer.camera.positionCartographic.height,
|
||||||
);
|
);
|
||||||
check(
|
check(
|
||||||
`ZOOM IN flies to ${Math.round(fitHeight / 1000)} km within ${ZOOM_TIMEOUT_MS / 1_000} s`,
|
`ZOOM IN reaches target within ${ZOOM_TIMEOUT_MS / 1_000} s`,
|
||||||
zoomed,
|
zoomed,
|
||||||
`height=${Math.round(zoomedHeight)} target=${Math.round(fitHeight)}`,
|
`height=${Math.round(zoomedHeight)} target=${Math.round(fitHeight)}`,
|
||||||
);
|
);
|
||||||
@@ -1269,7 +1269,8 @@ try {
|
|||||||
);
|
);
|
||||||
await wait(100);
|
await wait(100);
|
||||||
}
|
}
|
||||||
const tail = (key) => new Set(samples.slice(-HEIGHT_TAIL_SAMPLES).map((s) => s[key]));
|
const tail = (key) =>
|
||||||
|
new Set(samples.slice(-HEIGHT_TAIL_SAMPLES).map((s) => s[key]));
|
||||||
return {
|
return {
|
||||||
settled: tail('imagery').size === 1 && tail('cctv').size === 1,
|
settled: tail('imagery').size === 1 && tail('cctv').size === 1,
|
||||||
detail: `imagery=${samples.map((s) => s.imagery).join(',')} cctv=${samples.map((s) => s.cctv).join(',')}`,
|
detail: `imagery=${samples.map((s) => s.imagery).join(',')} cctv=${samples.map((s) => s.cctv).join(',')}`,
|
||||||
|
|||||||
Reference in new issue
Block a user