mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 16:55:46 +00:00

Remove all remaining unused variables from tests in test/parallel. PR-URL: https://github.com/nodejs/node/pull/4511 Reviewed-By: James M Snell<jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
23 lines
528 B
JavaScript
23 lines
528 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
if (!common.hasFipsCrypto) {
|
|
console.log('1..0 # Skipped: node compiled without FIPS OpenSSL.');
|
|
return;
|
|
}
|
|
|
|
var crypto = require('crypto');
|
|
var fs = require('fs');
|
|
|
|
var input = 'hello';
|
|
|
|
var dsapri = fs.readFileSync(common.fixturesDir +
|
|
'/keys/dsa_private_1025.pem');
|
|
var sign = crypto.createSign('DSS1');
|
|
sign.update(input);
|
|
|
|
assert.throws(function() {
|
|
sign.sign(dsapri);
|
|
}, /PEM_read_bio_PrivateKey failed/);
|