Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Aug 19, 2024
1 parent fec3fe3 commit d62f8bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@ jobs:
ruby-version: ${{ env.DEFAULT_RUBY_VERSION }}
bundler-cache: true
- run: ./dev/ci/setup-host ${{ matrix.integration.label }}
- run: dscacheutil -q host -a name 1.passenger.test
- run: |
dscacheutil -q host -a name 127.0.0.1
dscacheutil -q host -a name localhost
dscacheutil -q host -a name 1.passenger.test
dscacheutil -q host -a name 2.passenger.test
dscacheutil -q host -a name 3.passenger.test
dscacheutil -q host -a name 4.passenger.test
dscacheutil -q host -a name passenger.test
if: matrix.os == 'macos-latest'
- run: ./dev/ci/run-tests-with-docker ${{ matrix.integration.label }}
if: matrix.os == 'ubuntu-latest'
Expand Down
8 changes: 7 additions & 1 deletion test/support/nginx_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ def stop
@controller.stop
# On OS X, the Nginx server socket may linger around for a while
# after Nginx shutdown, despite Nginx setting SO_REUSEADDR.
sockaddr = Socket.pack_sockaddr_in(PORT, '127.0.0.1')
begin
sockaddr = Socket.pack_sockaddr_in(PORT, '127.0.0.1')
rescue SocketError -> e
p port
p e
raise e
end
eventually(30) do
!@controller.send(:ping_socket, Socket::Constants::AF_INET, sockaddr)
end
Expand Down

0 comments on commit d62f8bd

Please sign in to comment.