Skip to content

Commit

Permalink
test: don't assume process.versions.openssl always is available
Browse files Browse the repository at this point in the history
PR-URL: #1049
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
  • Loading branch information
jbergstroem authored and Shigeki Ohtsu committed Mar 5, 2015
1 parent 78581c8 commit d0e7c35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/parallel/test-process-versions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require('../common');
var common = require('../common');
var assert = require('assert');

var expected_keys = ['ares', 'http_parser', 'modules', 'node',
'openssl', 'uv', 'v8', 'zlib'];
'uv', 'v8', 'zlib'];

assert.deepEqual(Object.keys(process.versions).sort(), expected_keys);
if(common.hasCrypto) {
expected_keys.push('openssl');
}

assert.deepEqual(Object.keys(process.versions).sort(), expected_keys.sort());

0 comments on commit d0e7c35

Please sign in to comment.