summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2012-12-10 18:21:10 +0100
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2013-06-12 22:49:32 +0200
commitedd7eb9b7d4d8c8a7dbdf7b847c3e0025796e2d7 (patch)
treee5fe7db287f9b854996b242d8024d544d76d7de8 /tests
parentdfc98dccf45c639cff45e84bb78a5a2d41a214bb (diff)
downloadredis-edd7eb9b7d4d8c8a7dbdf7b847c3e0025796e2d7.tar.gz
test-server: only listen to 127.0.0.1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/assets/default.conf1
-rw-r--r--tests/test_helper.tcl2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/assets/default.conf b/tests/assets/default.conf
index 17d21b07c..902a094a5 100644
--- a/tests/assets/default.conf
+++ b/tests/assets/default.conf
@@ -5,6 +5,7 @@ daemonize no
pidfile /var/run/redis.pid
port 6379
timeout 0
+bind 127.0.0.1
loglevel verbose
logfile ''
databases 16
diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl
index 5e2c2ad92..930eba4ee 100644
--- a/tests/test_helper.tcl
+++ b/tests/test_helper.tcl
@@ -186,7 +186,7 @@ proc test_server_main {} {
if {!$::quiet} {
puts "Starting test server at port $port"
}
- socket -server accept_test_clients $port
+ socket -server accept_test_clients -myaddr 127.0.0.1 $port
# Start the client instances
set ::clients_pids {}