diff --git a/package.json b/package.json index 44081d91..d418c8fa 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "node-gyp-build": "~4.1.0" }, "devDependencies": { - "async": "^2.0.1", + "async-each": "^1.0.3", "coveralls": "^3.0.2", "cross-env": "^5.2.0", "delayed": "^1.0.1", diff --git a/test/compression-test.js b/test/compression-test.js index 515296ab..873ffc8f 100644 --- a/test/compression-test.js +++ b/test/compression-test.js @@ -1,4 +1,4 @@ -const async = require('async') +const each = require('async-each') const du = require('du') const delayed = require('delayed') const testCommon = require('./common') @@ -48,7 +48,7 @@ test('compression', function (t) { var db = testCommon.factory() db.open(function (err) { t.error(err) - async.forEach( + each( Array.apply(null, Array(multiples)).map(function (e, i) { return [ i, compressableData ] }), function (args, callback) { @@ -62,7 +62,7 @@ test('compression', function (t) { var db = testCommon.factory() db.open({ compression: false }, function (err) { t.error(err) - async.forEach( + each( Array.apply(null, Array(multiples)).map(function (e, i) { return [ i, compressableData ] }), function (args, callback) {