Skip to content
Permalink
Browse files

test: modernize test-crypto-domain

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 jasnell committed Oct 12, 2018
1 parent 7298f8a commit 2f385504582e3aae1d4c9d2bf93df3f895175019
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-crypto-domain.js
@@ -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) {
@@ -38,7 +38,7 @@ function test(fn) {
throw ex;
});
d.run(cb);
}
};

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

0 comments on commit 2f38550

Please sign in to comment.
You can’t perform that action at this time.