agent-exec transport 850b1455fe23d71cb5cd28eb43df9069/5ca3ade8a790
This commit is contained in:
+3
-1
@@ -986,7 +986,9 @@ class SvcDbRecoveryTests(unittest.TestCase):
|
||||
htdocs = self.root / "static-site"
|
||||
htdocs.mkdir()
|
||||
(htdocs / "index.html").write_text("<html>static-ok</html>\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)
|
||||
|
||||
Reference in New Issue
Block a user