str0zzapreti / pytest-retry

A simple plugin for retrying flaky tests in CI environments
MIT License
27 stars 6 forks source link

Added random free port assignment and sync to prevent port conflicts #31

Closed str0zzapreti closed 6 months ago

str0zzapreti commented 6 months ago

As per https://github.com/str0zzapreti/pytest-retry/issues/30, switched from fixed port assignment to letting the OS assign a random available port. This prevents a port conflict and resulting OSError which would occur if two test instances were run simultaneously on the same machine.

Thanks @andrewasheridan for the suggestion.