Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moonming committed May 11, 2020
1 parent 204d250 commit e5a6318
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions t/plugin/skywalking.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
#
use t::APISIX 'no_plan';

repeat_each(2);
BEGIN {
if ($ENV{TEST_NGINX_CHECK_LEAK}) {
$SkipReason = "unavailable for the hup tests";

} else {
$ENV{TEST_NGINX_USE_HUP} = 1;
undef $ENV{TEST_NGINX_USE_STAP};
}
}

repeat_each(1);
no_long_string();
no_root_location();
log_level("debug");
Expand Down Expand Up @@ -182,12 +192,17 @@ passed
GET /opentracing
--- response_body
opentracing
--- no_error_log
[error]
--- grep_error_log eval
qr/\[info\].*/
qr/skywalking service Instance registered, service instance id: \d+/
--- grep_error_log_out eval
qr{report2endpoint ok}
qr/skywalking service Instance registered, service instance id: 1/
--- timeout: 5
--- LAST



=== TEST 7: change sample ratio
--- config
location /t {
Expand Down

0 comments on commit e5a6318

Please sign in to comment.