osbuild / osbuild-composer

An HTTP service for building bootable OS images.
https://www.osbuild.org
Apache License 2.0
156 stars 107 forks source link

osbuild-worker-executor/main_test: use random port for tests #4218

Closed schuellerf closed 4 weeks ago

schuellerf commented 1 month ago

I got error listening and serving: listen tcp 127.0.0.1:18002: bind: address already in use during copr/packit a build.

(e.g. this build )

This implementation for sure is racy but hopefully better than colliding with other concurrent tests with a fixed port for sure

schuellerf commented 1 month ago

@mvo5 any other suggestion to avoid address already in use? 🤔