Skip to content

Commit e5a6318

Browse files
committed
fix
1 parent 204d250 commit e5a6318

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

t/plugin/skywalking.t

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@
1616
#
1717
use t::APISIX 'no_plan';
1818

19-
repeat_each(2);
19+
BEGIN {
20+
if ($ENV{TEST_NGINX_CHECK_LEAK}) {
21+
$SkipReason = "unavailable for the hup tests";
22+
23+
} else {
24+
$ENV{TEST_NGINX_USE_HUP} = 1;
25+
undef $ENV{TEST_NGINX_USE_STAP};
26+
}
27+
}
28+
29+
repeat_each(1);
2030
no_long_string();
2131
no_root_location();
2232
log_level("debug");
@@ -182,12 +192,17 @@ passed
182192
GET /opentracing
183193
--- response_body
184194
opentracing
195+
--- no_error_log
196+
[error]
185197
--- grep_error_log eval
186-
qr/\[info\].*/
198+
qr/skywalking service Instance registered, service instance id: \d+/
187199
--- grep_error_log_out eval
188-
qr{report2endpoint ok}
200+
qr/skywalking service Instance registered, service instance id: 1/
201+
--- timeout: 5
189202
--- LAST
190203

204+
205+
191206
=== TEST 7: change sample ratio
192207
--- config
193208
location /t {

0 commit comments

Comments
 (0)