Use recent changes from Nino, to get access to the launched and port information.

Quite useful when launching using port=0 to use a random free port.
This is great for testing, this way we can run many tests in the same time without any port blocking.
This commit is contained in:
Jocelyn Fiat
2011-11-04 12:15:40 +01:00
parent 07f9a8cec7
commit 3a6e3592ae
5 changed files with 63 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ feature {NONE} -- Events
wt: WORKER_THREAD
e: EXECUTION_ENVIRONMENT
do
port_number := 8087
port_number := 0
base_url := "test/"
create app.make_custom (agent wgi_execute, base_url)
web_app := app
@@ -46,6 +46,8 @@ feature {NONE} -- Events
create e
e.sleep (1_000_000_000 * 5)
port_number := app.port
end
execute (req: WSF_REQUEST; res: WSF_RESPONSE)