Skip to content

Commit 4cea688

Browse files
committed
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.
1 parent 3ef8ece commit 4cea688

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/sqlbuild-orchestration/tests/api/changes

‎crates/sqlbuild-orchestration/tests/api/changes/helpers.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(crate) async fn opened(response: reqwest::Response) -> SseConnection {
6565
}
6666

6767
pub(crate) async fn next_topic(stream: &mut SseConnection) -> Option<String> {
68-
tokio::time::timeout(Duration::from_secs(3), async {
68+
tokio::time::timeout(Duration::from_secs(30), async {
6969
for _ in 0..4096 {
7070
for _ in 0..4096 {
7171
let Some(end) = stream.pending.windows(2).position(|bytes| bytes == b"\n\n") else {

0 commit comments

Comments
 (0)