Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jun 14, 2017
1 parent ce60eaa commit 3d0df1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "2.4.3",
"version": "2.5.0",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand All @@ -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": {
Expand Down
12 changes: 6 additions & 6 deletions test/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -37,7 +37,7 @@ describe("#networks", function() {
}]
}
}, function(err, network) {
if (err) done(err);
if (err) return done(err);
testNetwork = network;
done();
});
Expand All @@ -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();
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d0df1b

Please sign in to comment.