summaryrefslogtreecommitdiff
path: root/t/proxy.t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2023-04-28 12:34:58 -0700
committerdormando <dormando@rydia.net>2023-04-28 12:34:58 -0700
commit6350e44292a9b72f9b1f9b4dce572903ae2ade14 (patch)
tree2c92d24985eaf15260e16fbcca01f9b7285518c0 /t/proxy.t
parent24bf90cff7548c0becb0fee3213c274a9fb29ee5 (diff)
downloadmemcached-6350e44292a9b72f9b1f9b4dce572903ae2ade14.tar.gz
proxy: let tests use unix socket for proxy daemon
A long sleep in the unix startup code made backends hit the connection timeout before the backends were configured. Make all the proxy tests use the unix socket instead of listening on a hardcoded port. Proxy code is completely equivalent from the client standpoint. This fix should make the whole test suite run a bit faster too.
Diffstat (limited to 't/proxy.t')
-rw-r--r--t/proxy.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/proxy.t b/t/proxy.t
index 49aab88..4a86d83 100644
--- a/t/proxy.t
+++ b/t/proxy.t
@@ -31,7 +31,7 @@ for (2 .. 6) {
}
#my $sock = $srv->sock;
-my $p_srv = new_memcached('-o proxy_config=./t/startfile.lua -l 127.0.0.1', 11211);
+my $p_srv = new_memcached('-o proxy_config=./t/startfile.lua');
my $p_sock = $p_srv->sock;
# hack to help me use T_MEMD_USE_DAEMON for proxy.