summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2015-09-30 15:38:47 +1000
committerIan Wienand <iwienand@redhat.com>2015-11-19 09:17:15 +1100
commitff977bf7a74e001b42b59576d36ac7658766045f (patch)
treeff961f4a36b69a4a5b8c230e549cc8793536f5d8 /tox.ini
parent2c83a2a542f67562a0bcc84f0ca0ec861537fce4 (diff)
downloadzuul-ff977bf7a74e001b42b59576d36ac7658766045f.tar.gz
Use 127.0.0.1 rather than localhost for statsd host
When we use "localhost" as the statsd server, statsd can possibly choose ::1 (i.e. ipv6) and all stats tests fail because the fake stats server is ipv4. This seems more prevalent with python2.6 (failures in our centos6 CI, replicated with Debian stable), probably because ordering of results changes in later glibcs. Anyway, specify 127.0.0.1 so we're getting the right thing Change-Id: I2f821834ab4d7e06cdb5933b79b9f650d9668c0e
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index d716bb715..0f8254a81 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ envlist = pep8, py27
[testenv]
# Set STATSD env variables so that statsd code paths are tested.
-setenv = STATSD_HOST=localhost
+setenv = STATSD_HOST=127.0.0.1
STATSD_PORT=8125
VIRTUAL_ENV={envdir}
OS_TEST_TIMEOUT=30