Skip to content

Commit

Permalink
test: add crypto check to test-benchmark-http2
Browse files Browse the repository at this point in the history
Currently, this test will fail when configured --without-ssl. This
commit adds a crypto check to have this test skipped when configured
without crypto support.

PR-URL: #24096
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
danbev committed Nov 6, 2018
1 parent 33fbb93 commit 615160c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sequential/test-benchmark-http2.js
@@ -1,6 +1,8 @@
'use strict';

const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

if (!common.enoughTestMem)
common.skip('Insufficient memory for HTTP/2 benchmark test');
Expand Down

0 comments on commit 615160c

Please sign in to comment.