Skip to content

Commit de656d7

Browse files
authored
Merge pull request #157 from MasterOdin/chore-async
Update async to ^3.2.6
2 parents c64fc8d + 8f99e30 commit de656d7

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

package-lock.json

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lib"
1717
],
1818
"dependencies": {
19-
"async": "^2.6.4",
19+
"async": "^3.2.6",
2020
"debug": "^3.2.7",
2121
"mkdirp": "^0.5.6"
2222
},

test/helper.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ module.exports.startServers = function(servers, startPort, endPort, callback) {
3131
endPort = endPort || 32773;
3232

3333
_async.whilst(
34-
function () { return base < endPort; },
34+
function (cb) { cb(null, base < endPort); },
3535
function (next) {
3636
var hosts = ['localhost'];
3737
while (hosts.length > 1) { servers.push(createServer(base, hosts.shift())); }
3838
servers.push(createServer(base, hosts.shift(), next)); // call next for host
3939
base++;
40-
}, callback);
40+
},
41+
callback,
42+
);
4143
};
4244

4345
module.exports.stopServers = function(servers, callback) {
4446
_async.whilst(
45-
function() { return servers.length > 0; },
47+
function(cb) { cb(null, servers.length > 0); },
4648
function(next) {
4749
servers.pop().close(next);
4850
},

test/port-finder-socket.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function createServers (callback) {
2121
var base = 0;
2222

2323
_async.whilst(
24-
function () { return base < 5 },
24+
function (cb) { cb(null, base < 5); },
2525
function (next) {
2626
var server = net.createServer(function () { }),
2727
name = base === 0 ? 'test.sock' : 'test' + base + '.sock',

0 commit comments

Comments
 (0)