DescriptionAllow forcing TestWebServer to use a specific port number.
Commit c4a3f88c4434e86057a8c7ae4e109b8be4138d8f ("TestWebServer needs to
use a free port") has caused TestWebServer to use a random port number
in each invocation.
This does not play well with tests that assume the server will be
running on a specific port (for example, an HTML asset trying to do XHR
whose contents cannot be changed at runtime).
start() and startSsl() can now be passed an optional port number; if it
is being used, the server will fail to start like it did before the
commit mentioned above.
R=hush@chromium.org, yfriedman@chromium.org
Committed: https://crrev.com/b4e712c20bf06821c8a05c78886b3fc7dd96b887
Cr-Commit-Position: refs/heads/master@{#300151}
Patch Set 1 #
Messages
Total messages: 7 (1 generated)
|