It's common to spin up a server in a test so that you can do full end-to-end requests of it. It's a very important sort of test, to make sure things work all together. And this is great, but you quickly run into a problem: port collisions!
So... how do we fix that? You read the title, so you know where we're going, but let's go there together.