Skip to content

Commit

Permalink
tests: updated test plan specifically for check leak mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Aug 6, 2024
1 parent d159607 commit ebd5a18
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion t/balancer.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ use t::TestCore;

repeat_each(2);

plan tests => repeat_each() * (blocks() * 4 + 6);
my $TestPlan = $ENV{TEST_NGINX_CHECK_LEAK} ?
repeat_each() * (blocks() * 4 + 8) : repeat_each() * (blocks() * 4 + 6);

plan tests => $TestPlan;

$ENV{TEST_NGINX_LUA_PACKAGE_PATH} = "$t::TestCore::lua_package_path";

Expand Down
10 changes: 9 additions & 1 deletion t/stream/process-type-hup.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# vim:set ft= ts=4 sw=4 et fdm=marker:

our $SkipReason;

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

use lib '.';
use t::TestCore::Stream;
use t::TestCore::Stream $SkipReason ? (skip_all => $SkipReason) : ();

repeat_each(2);

Expand Down
2 changes: 1 addition & 1 deletion t/stream/process-type-privileged-agent.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use t::TestCore::Stream;

repeat_each(2);

plan tests => repeat_each() * (blocks() * 4) - 2;
plan tests => repeat_each() * (blocks() * 4 - 1);

add_block_preprocessor(sub {
my $block = shift;
Expand Down

0 comments on commit ebd5a18

Please sign in to comment.