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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user