@@ -456,7 +456,7 @@ received memc reply: OK
456456=== TEST 5 : ngx. exit(0 ) - no yield
457457-- - http_config
458458 server {
459- listen 127.0 . 0. 2: 8080 ssl;
459+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
460460 server_name test. com;
461461 ssl_certificate_by_lua_block {
462462 ngx. exit(0 )
@@ -484,7 +484,7 @@ received memc reply: OK
484484
485485 sock: settimeout(2000 )
486486
487- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
487+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
488488 if not ok then
489489 ngx. say (" failed to connect: " , err)
490490 return
@@ -523,7 +523,7 @@ should never reached here
523523=== TEST 6 : ngx. exit(ngx. ERROR) - no yield
524524-- - http_config
525525 server {
526- listen 127.0 . 0. 2: 8080 ssl;
526+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
527527 server_name test. com;
528528 ssl_certificate_by_lua_block {
529529 ngx. exit(ngx. ERROR)
@@ -551,7 +551,7 @@ should never reached here
551551
552552 sock: settimeout(2000 )
553553
554- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
554+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
555555 if not ok then
556556 ngx. say (" failed to connect: " , err)
557557 return
@@ -593,7 +593,7 @@ should never reached here
593593=== TEST 7 : ngx. exit(0 ) - yield
594594-- - http_config
595595 server {
596- listen 127.0 . 0. 2: 8080 ssl;
596+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
597597 server_name test. com;
598598 ssl_certificate_by_lua_block {
599599 ngx. sleep (0.001 )
@@ -623,7 +623,7 @@ should never reached here
623623
624624 sock: settimeout(2000 )
625625
626- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
626+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
627627 if not ok then
628628 ngx. say (" failed to connect: " , err)
629629 return
@@ -662,7 +662,7 @@ should never reached here
662662=== TEST 8 : ngx. exit(ngx. ERROR) - yield
663663-- - http_config
664664 server {
665- listen 127.0 . 0. 2: 8080 ssl;
665+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
666666 server_name test. com;
667667 ssl_certificate_by_lua_block {
668668 ngx. sleep (0.001 )
@@ -692,7 +692,7 @@ should never reached here
692692
693693 sock: settimeout(2000 )
694694
695- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
695+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
696696 if not ok then
697697 ngx. say (" failed to connect: " , err)
698698 return
@@ -734,7 +734,7 @@ should never reached here
734734=== TEST 9 : lua exception - no yield
735735-- - http_config
736736 server {
737- listen 127.0 . 0. 2: 8080 ssl;
737+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
738738 server_name test. com;
739739 ssl_certificate_by_lua_block {
740740 error(" bad bad bad" )
@@ -762,7 +762,7 @@ should never reached here
762762
763763 sock: settimeout(2000 )
764764
765- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
765+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
766766 if not ok then
767767 ngx. say (" failed to connect: " , err)
768768 return
@@ -805,7 +805,7 @@ should never reached here
805805=== TEST 10 : lua exception - yield
806806-- - http_config
807807 server {
808- listen 127.0 . 0. 2: 8080 ssl;
808+ listen 127.0 . 0. 2: $ TEST_NGINX_RAND_PORT_1 ssl;
809809 server_name test. com;
810810 ssl_certificate_by_lua_block {
811811 ngx. sleep (0.001 )
@@ -834,7 +834,7 @@ should never reached here
834834
835835 sock: settimeout(2000 )
836836
837- local ok , err = sock: connect(" 127.0.0.2" , 8080 )
837+ local ok , err = sock: connect(" 127.0.0.2" , $ TEST_NGINX_RAND_PORT_1 )
838838 if not ok then
839839 ngx. say (" failed to connect: " , err)
840840 return
0 commit comments