Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local development on macOS #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix local development on macOS #3

wants to merge 1 commit into from

Conversation

drewbrew
Copy link

Since macOS Monterey in 2001, the Control Center service has been using port 5000 at startup[1], meaning that the moto test server will be binding to an already-in-use port and silently fail, causing most tests to fail with a somewhat inexplicable 403 Forbidden.

This fixes that by making the port a fixture in tests/fixtures and using that constant anywhere the test code was using port 5000.

[1] https://medium.com/pythonistas/port-5000-already-in-use-macos-monterey-issue-d86b02edd36c

Since macOS Monterey in 2001, the Control Center service has been
using port 5000 at startup[1], meaning that the moto test server will
be binding to an already-in-use port and silently fail, causing
most tests to fail with a somewhat inexplicable 403 Forbidden.

This fixes that by making the port a fixture in tests/fixtures and
using that constant anywhere the test code was using port 5000.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant