We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bccd6f commit c455896Copy full SHA for c455896
t/stream-plugin/prometheus.t
@@ -22,7 +22,11 @@ BEGIN {
22
$ENV{TEST_NGINX_USE_HUP} = 1;
23
undef $ENV{TEST_NGINX_USE_STAP};
24
}
25
- $ENV{TEST_NGINX_SLEEP} = 0.1;
+ # 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;
30
31
32
use t::APISIX;
0 commit comments