From 4cea688991d71cfa7b3aad5485490ea090c59337 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Fri, 13 Nov 2026 18:32:47 +0000 Subject: [PATCH] test(server): give SSE delivery a hang guard instead of a reconnect deadline The listener reconnect test bounded each change notice at 3 seconds. A reset listener waits 1 second and then opens new database connections before it resyncs, which can take longer than the remaining 2 seconds when PostgreSQL starts backends slowly, as on Windows runners. Each wait is now a 30-second hang guard; the expected notices are unchanged. --- crates/sqlbuild-orchestration/tests/api/changes/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/sqlbuild-orchestration/tests/api/changes/helpers.rs b/crates/sqlbuild-orchestration/tests/api/changes/helpers.rs index 7744395608..e52bfcc7e9 100644 --- a/crates/sqlbuild-orchestration/tests/api/changes/helpers.rs +++ b/crates/sqlbuild-orchestration/tests/api/changes/helpers.rs @@ -65,7 +65,7 @@ pub(crate) async fn opened(response: reqwest::Response) -> SseConnection { } pub(crate) async fn next_topic(stream: &mut SseConnection) -> Option { - tokio::time::timeout(Duration::from_secs(3), async { + tokio::time::timeout(Duration::from_secs(30), async { for _ in 0..4096 { for _ in 0..4096 { let Some(end) = stream.pending.windows(2).position(|bytes| bytes == b"\n\n") else {