Skip to content

Fix local development on macOS - #3

Open
drewbrew wants to merge 1 commit into
mainfrom
fix-mac-os-dev
Open

Fix local development on macOS#3
drewbrew wants to merge 1 commit into
mainfrom
fix-mac-os-dev

Conversation

@drewbrew

Copy link
Copy Markdown

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