mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
test: In the docker entrypoint, wait for minidns to come up
The tests might start running and attempting to do DNS resolutions before minidns has come up, which can cause false positives and flaky tests. This patch makes the entrypoint wait until minidns has come up, to fix the problem.
This commit is contained in:
@@ -37,6 +37,9 @@ start-stop-daemon --start --background \
|
||||
echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||
echo "nameserver ::1" >> /etc/resolv.conf
|
||||
|
||||
# Wait until the minidns resolver comes up.
|
||||
wait_until_ready 53
|
||||
|
||||
# Launch arguments, which come from docker CMD, as "chasquid" user.
|
||||
# Running tests as root makes some integration tests more difficult, as for
|
||||
# example Exim has hard-coded protections against running as root.
|
||||
|
||||
Reference in New Issue
Block a user