mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
97d8ebffca
To do this we needed a way to get the actual address that was bound. To do that we needed to refactor the server and runtime code a tad to let us create our own `net.Listener`s and get their address _after_ they had been started. The code is pretty much 1:1 with what is in the official `http` package. Now when the tests run using the helpers to stand up server runtimes they should all be on separate ports.. in theory we could run the unit tests in parallel without concern (for the e2e parts anyway). Fixes: #1533 Signed-off-by: Patrick East <east.patrick@gmail.com>