From 0876a683cdc344b200dbd65aa137969a1528c85d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Feb 2026 22:56:56 +0000 Subject: Revert polling interval back to 1s https://claude.ai/code/session_0187FXrbScDSWfbNEk9SfJaj --- frontend-vanilla/src/polling.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend-vanilla/src/polling.test.ts') diff --git a/frontend-vanilla/src/polling.test.ts b/frontend-vanilla/src/polling.test.ts index 44ad7da..fa4b62f 100644 --- a/frontend-vanilla/src/polling.test.ts +++ b/frontend-vanilla/src/polling.test.ts @@ -44,8 +44,8 @@ describe('Infinite Scroll Polling', () => { json: async () => [] } as Response); - // Wait for interval (3000ms) + buffer - await new Promise(resolve => setTimeout(resolve, 3100)); + // Wait for interval (1000ms) + buffer + await new Promise(resolve => setTimeout(resolve, 1100)); // Check if apiFetch was called expect(apiFetch).toHaveBeenCalledWith(expect.stringContaining('/api/stream')); @@ -58,7 +58,7 @@ describe('Infinite Scroll Polling', () => { Object.defineProperty(scrollRoot, 'clientHeight', { value: 200, configurable: true }); Object.defineProperty(scrollRoot, 'scrollTop', { value: 100, configurable: true }); - await new Promise(resolve => setTimeout(resolve, 3100)); + await new Promise(resolve => setTimeout(resolve, 1100)); expect(apiFetch).not.toHaveBeenCalled(); }); -- cgit v1.2.3