Skip to content

Commit c455896

Browse files
committed
f
Signed-off-by: Nic <qianyong@api7.ai>
1 parent 4bccd6f commit c455896

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/stream-plugin/prometheus.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ BEGIN {
2222
$ENV{TEST_NGINX_USE_HUP} = 1;
2323
undef $ENV{TEST_NGINX_USE_STAP};
2424
}
25-
$ENV{TEST_NGINX_SLEEP} = 0.1;
25+
# because nginx-lua-prometheus uses a timer to periodically synchronize lua module variables to
26+
# shared dict, and all test cases in this test file use HUP to reload nginx in order to retain
27+
# the data in the shared dict, it is necessary to increase the value of TEST_NGINX_SLEEP to
28+
# avoid losing prometheus data due to worker exits.
29+
$ENV{TEST_NGINX_SLEEP} = 1;
2630
}
2731

2832
use t::APISIX;

0 commit comments

Comments
 (0)