Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use $TEST_NGINX_MEMCACHED_PORT instead of hardcoded value.

  • Loading branch information...
commit 5592b7175815bd09719214a5383086ede80f64b9 1 parent 368bd59
@PiotrSikora PiotrSikora authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/t/memc.t
View
6 test/t/memc.t
@@ -5,6 +5,8 @@ use Test::Nginx::Socket; # skip_all => 'ngx_memc storage commands do not work wi
plan tests => repeat_each() * 2 * blocks();
+$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
+
no_long_string();
#no_diff;
@@ -15,7 +17,7 @@ __DATA__
=== TEST 1: set in eval (NO subrequest in memory)
--- http_config
upstream mc {
- server localhost:11984;
+ server 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
}
--- config
@@ -49,7 +51,7 @@ __DATA__
=== TEST 2: set in eval (subrequest in memory)
--- http_config
upstream mc {
- server localhost:11984;
+ server 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
}
--- config
Please sign in to comment.
Something went wrong with that request. Please try again.