From d0b217d3a486d32db91d69539c39d07ed9dbdae0 Mon Sep 17 00:00:00 2001 From: agent-exec-transport Date: Wed, 21 Oct 2026 02:49:58 +0000 Subject: [PATCH] agent-exec transport 850b1455fe23d71cb5cd28eb43df9069/5ca3ade8a790 --- tests/test_svc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_svc.py b/tests/test_svc.py index f90e636d..816cb8f7 100644 --- a/tests/test_svc.py +++ b/tests/test_svc.py @@ -986,7 +986,9 @@ class SvcDbRecoveryTests(unittest.TestCase): htdocs = self.root / "static-site" htdocs.mkdir() (htdocs / "index.html").write_text("static-ok\n") - port = 18951 + with socket.socket() as reservation: + reservation.bind(("127.0.0.1", 0)) + port = reservation.getsockname()[1] result = self.svc( "uiqa", "deploy", "--kind", "static", "--dir", str(htdocs), "--addr", "127.0.0.1:%d" % port)