Skip to content

Commit

Permalink
Bind to 127.0.0.1 when using docker
Browse files Browse the repository at this point in the history
I'm not sure why this is a problem, but emprically it is now required
for me to run it locally.

The exact thing that needs to change is that HaProxy server addresses
need to be changed. I assume its something like when HaProxy starts
`localhost` can't be resolved.
  • Loading branch information
erikjohnston committed Jun 13, 2024
1 parent 48dc301 commit b77cf5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/synapse_sytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ echo >&2 "+++ Running tests"

export COVERAGE_PROCESS_START="/src/.coveragerc"

# We set the `--bind-host` as 127.0.0.1 as docker sometimes can't find
# localhost.
RUN_TESTS=(
perl -I "$SYTEST_LIB" /sytest/run-tests.pl --python=/venv/bin/python --synapse-directory=/src -B "/src/$BLACKLIST" --coverage -O tap --all
--work-directory="/work"
--work-directory="/work" --bind-host 127.0.0.1
)

if [ -n "$ASYNCIO_REACTOR" ]; then
Expand Down

0 comments on commit b77cf5c

Please sign in to comment.