Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: use fs instead of crypto
  • Loading branch information
BridgeAR authored and AndreasMadsen committed Jul 12, 2017
commit 19890ce78f6114445757169db8a27203e451488d
6 changes: 3 additions & 3 deletions test/parallel/test-async-hooks-enable-recursive.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common');
const async_hooks = require('async_hooks');
const crypto = require('crypto');
const fs = require('fs');

const nestedHook = async_hooks.createHook({
init: common.mustCall()
Expand All @@ -14,6 +14,6 @@ async_hooks.createHook({
}, 2)
}).enable();

crypto.randomBytes(1, common.mustCall(() => {
crypto.randomBytes(1, common.mustCall());
fs.access(__filename, common.mustCall(() => {
fs.access(__filename, common.mustCall());
}));