From 3d0df1bf0160777d2c7bc9efc37aab12fe53b6af Mon Sep 17 00:00:00 2001 From: Pedro Dias Date: Wed, 14 Jun 2017 20:01:11 +0100 Subject: [PATCH] Test fixes --- package.json | 4 ++-- test/networks.js | 12 ++++++------ test/swarm.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index f849074..5bfca66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dockerode", "description": "Docker Remote API module.", - "version": "2.4.3", + "version": "2.5.0", "author": "Pedro Dias ", "maintainers": [ "apocas " @@ -16,7 +16,7 @@ ], "dependencies": { "concat-stream": "~1.5.1", - "docker-modem": "0.3.x", + "docker-modem": "^1.0.0", "tar-fs": "~1.12.0" }, "devDependencies": { diff --git a/test/networks.js b/test/networks.js index 76fdbb9..8cb2a3f 100644 --- a/test/networks.js +++ b/test/networks.js @@ -21,10 +21,10 @@ describe("#networks", function() { OpenStdin: false, StdinOnce: false }, function(err, container) { - if (err) done(err); + if (err) return done(err); testContainer = container.id; container.start(function(err, result) { - if (err) done(err); + if (err) return done(err); docker.createNetwork({ "Name": "isolated_nw", @@ -37,7 +37,7 @@ describe("#networks", function() { }] } }, function(err, network) { - if (err) done(err); + if (err) return done(err); testNetwork = network; done(); }); @@ -49,12 +49,12 @@ describe("#networks", function() { this.timeout(15000); var container = docker.getContainer(testContainer); container.kill(function(err, result) { - if (err) done(err); + if (err) return done(err); container.remove(function(err, result) { - if (err) done(err); + if (err) return done(err); testNetwork.remove(function(err, result) { - if (err) done(err); + if (err) return done(err); done(); }); }); diff --git a/test/swarm.js b/test/swarm.js index 729f4f6..8b009c4 100644 --- a/test/swarm.js +++ b/test/swarm.js @@ -341,7 +341,7 @@ describe("#swarm", function() { describe("#leaveSwarm", function() { it("should leave swarm", function(done) { - this.timeout(5000); + this.timeout(10000); function handler(err, data) { expect(err).to.be.null;