Reduce polling and batch observation writes
This commit is contained in:
@@ -168,6 +168,12 @@ export async function runTests() {
|
||||
dashboardSource.includes('document.visibilityState === "hidden"'),
|
||||
"terminal online-user presence should refresh slowly and pause while the browser tab is hidden",
|
||||
);
|
||||
assert(
|
||||
dashboardSource.includes("AUTH_PROFILE_RETRY_INITIAL_DELAY_MS = 5_000") &&
|
||||
dashboardSource.includes("AUTH_PROFILE_RETRY_POLL_MS = 30_000") &&
|
||||
!dashboardSource.includes("}, 5000);"),
|
||||
"terminal auth subscription retry should back off after the first retry instead of polling auth/me every 5 seconds",
|
||||
);
|
||||
assert(
|
||||
chartSource.includes("IntersectionObserver") &&
|
||||
chartSource.includes("shouldFetchCityDetailForChart") &&
|
||||
|
||||
Reference in New Issue
Block a user