Skip to content

Commit

Permalink
test: modernize test-crypto-domain
Browse files Browse the repository at this point in the history
PR-URL: #23559
Reviewed-By: Sam Ruby <rubys@intertwingly.net>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
naris93 authored and MylesBorins committed Oct 30, 2018
1 parent 77f2100 commit fc05ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const assert = require('assert');
const crypto = require('crypto');
const domain = require('domain');

function test(fn) {
const test = (fn) => {
const ex = new Error('BAM');
const d = domain.create();
d.on('error', common.mustCall(function(err) {
Expand All @@ -38,7 +38,7 @@ function test(fn) {
throw ex;
});
d.run(cb);
}
};

test(function(cb) {
crypto.pbkdf2('password', 'salt', 1, 8, cb);
Expand Down

0 comments on commit fc05ca5

Please sign in to comment.