Reduce terminal chart update timeouts

This commit is contained in:
2569718930@qq.com
2026-06-01 14:07:13 +08:00
parent 31fb1b3f28
commit ac5b512a72
6 changed files with 35 additions and 12 deletions
@@ -41,6 +41,11 @@ export function runTests() {
const detailBatchProxy = readFrontend("app", "api", "cities", "detail-batch", "route.ts");
assert.match(detailBatchProxy, /createProxyTimer\(req,\s*"city_detail_batch"\)/);
assert.match(detailBatchProxy, /timing:\s*timer/);
assert.match(
detailBatchProxy,
/POLYWEATHER_CITY_DETAIL_BATCH_PROXY_TIMEOUT_MS\s*\|\|\s*"15000"/,
"city detail batch proxy should leave room for backend partial responses instead of aborting at the chart fetch deadline",
);
assert.match(
detailBatchProxy,
/fetchCache:\s*"no-store"/,