diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-04-08 08:56:12 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-04-08 08:56:12 +0400 |
commit | 3054decc199380e0d25c11ae12ce2d80262a303d (patch) | |
tree | a73ea424365925972eeb08f2d92ed40e69d32c91 /test | |
parent | de7c0e8c021a4cce9be0e6e6a63d42455109ba94 (diff) | |
download | android-node-v8-3054decc199380e0d25c11ae12ce2d80262a303d.tar.gz android-node-v8-3054decc199380e0d25c11ae12ce2d80262a303d.tar.bz2 android-node-v8-3054decc199380e0d25c11ae12ce2d80262a303d.zip |
test: fix test-crypto
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-crypto.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/simple/test-crypto.js b/test/simple/test-crypto.js index eb33aef92b..4965b627f6 100644 --- a/test/simple/test-crypto.js +++ b/test/simple/test-crypto.js @@ -60,6 +60,7 @@ var dsaKeyPemEncrypted = fs.readFileSync( // TODO(indunty): move to a separate test eventually try { + var tls = require('tls'); var context = tls.createSecureContext({ key: keyPem, cert: certPem, @@ -82,7 +83,7 @@ assert.throws(function() { // PFX tests assert.doesNotThrow(function() { - crypto.createSecureContext({pfx:certPfx, passphrase:'sample'}); + tls.createSecureContext({pfx:certPfx, passphrase:'sample'}); }); assert.throws(function() { |