changeset 864:460a9cadbd2f

Tests: do not check for njs presence, just try js.t configuration.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 10 Mar 2016 17:57:13 +0300
parents 44a9a45aa041
children f8f8304c8832
files js.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
 ###############################################################################