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.

ntietz.com/blog/binding-epheme

0

If you have a fediverse account, you can quote this note from your own instance. Search https://tietz.social/users/nicole/statuses/116121178932746040 on your instance and quote it. (Note that quoting is not supported in Mastodon.)