Skip to content

Commit 04d2e5e

Browse files
committed
fix(gui): decrease BROWSER_RECONNECT_TIMEOUT
1 parent 6fe914c commit 04d2e5e

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

ATTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ SOFTWARE.
360360

361361
```
362362

363-
## aignostics-foundry-core (0.9.0) - MIT License
363+
## aignostics-foundry-core (0.11.0) - MIT License
364364

365365
🏭 Foundational infrastructure for Foundry components.
366366

src/aignostics_foundry_core/gui/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from aignostics_foundry_core.gui.auth import FrameFunc
2626

2727
WINDOW_SIZE = (1280, 768)
28-
BROWSER_RECONNECT_TIMEOUT = 60 * 60 * 24 * 7 # 7 days
28+
BROWSER_RECONNECT_TIMEOUT = 30 # default is 3 seconds, was 7 days previously
2929
RESPONSE_TIMEOUT = 30
3030

3131

tests/aignostics_foundry_core/gui/gui_test.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,20 +221,12 @@ def test_cannot_instantiate_directly(self) -> None:
221221
class TestConstants:
222222
"""Tests for gui constants."""
223223

224-
def test_response_timeout(self) -> None:
225-
"""RESPONSE_TIMEOUT is 30 seconds."""
226-
assert RESPONSE_TIMEOUT == 30
227-
228224
def test_window_size_tuple(self) -> None:
229225
"""WINDOW_SIZE is a (width, height) tuple with positive dimensions."""
230226
w, h = WINDOW_SIZE
231227
assert w > 0
232228
assert h > 0
233229

234-
def test_browser_reconnect_timeout_is_long(self) -> None:
235-
"""BROWSER_RECONNECT_TIMEOUT is at least one day in seconds."""
236-
assert BROWSER_RECONNECT_TIMEOUT >= 60 * 60 * 24
237-
238230

239231
# ---------------------------------------------------------------------------
240232
# gui_register_pages

0 commit comments

Comments
 (0)