Skip to content

Commit

Permalink
tests: increase timeout for valgrind mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Jul 18, 2024
1 parent 69f1cc1 commit e46f24f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/TestCore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ add_block_preprocessor(sub {
if (!defined $block->http_config) {
$block->set_value("http_config", $HttpConfig);
}

if ($Test::Nginx::Util::UseValgrind) {
my $timeout = $block->timeout || 3;
$timeout *= 5;
$block->set_value("timeout", $timeout);
}
});

sub get_unused_port ($) {
Expand Down

0 comments on commit e46f24f

Please sign in to comment.