# HG changeset patch # User Sergey Kandaurov # Date 1457621833 -10800 # Node ID 460a9cadbd2f0ea363c89e60b7302de33e0a4830 # Parent 44a9a45aa0418740a8f4a66ff32aa29624451240 Tests: do not check for njs presence, just try js.t configuration. diff --git a/js.t b/js.t --- a/js.t +++ b/js.t @@ -21,7 +21,7 @@ use Test::Nginx; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http rewrite njs/)->plan(13) +my $t = Test::Nginx->new()->has(qw/http rewrite/) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -157,7 +157,7 @@ http { EOF -$t->run(); +$t->try_run('no njs available')->plan(13); ###############################################################################