You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CI job for mockoon-registrar-tests was failing because both the GitHub
Actions mockoon/cli-action and the test script were trying to start Mockoon
on port 3001, causing a "Port 3001 is already in use" error.
Changes:
- Enhanced port detection logic in tests/mockoon_registrar_tests.sh to use
multiple methods (lsof, netstat, ss, and curl) for detecting if port 3001
is already in use
- Improved cleanup logic to properly terminate Mockoon processes using
multiple methods (kill by PID, lsof, pkill by process name)
- Made the script more robust in CI environments where lsof might not
be available or behave differently
The test script now properly detects when Mockoon is already running
(started by the GitHub Actions workflow) and skips starting a duplicate
instance, avoiding the port conflict.
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Sergio Arroutbi <[email protected]>
0 commit comments