Skip to content

Commit

Permalink
tests: remove deprecated APIs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 15, 2019
1 parent b9c4a15 commit 31acb81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.18.0",
"eslint-plugin-markdown": "1.0.0",
"eslint-plugin-node": "7.0.1",
"eslint-plugin-node": "8.0.1",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.0",
"istanbul": "0.4.5",
Expand Down
4 changes: 2 additions & 2 deletions test/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('compression()', function () {
pressure()
})

crypto.pseudoRandomBytes(1024 * 128, function (err, chunk) {
crypto.randomBytes(1024 * 128, function (err, chunk) {
if (err) return done(err)
buf = chunk
pressure()
Expand Down Expand Up @@ -231,7 +231,7 @@ describe('compression()', function () {
pressure()
})

crypto.pseudoRandomBytes(1024 * 128, function (err, chunk) {
crypto.randomBytes(1024 * 128, function (err, chunk) {
if (err) return done(err)
buf = chunk
pressure()
Expand Down

0 comments on commit 31acb81

Please sign in to comment.