Skip to content

Commit

Permalink
Empty data, tests, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Sep 8, 2017
1 parent f1cb462 commit d2fdfa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ Container.prototype.createCheckpoint = function(opts, callback) {
var optsf = {
path: '/containers/' + this.id + '/checkpoints',
method: 'POST',
allowEmpty: true,
statusCodes: {
200: true, //unofficial, but proxies may return it
204: true,
Expand Down
1 change: 1 addition & 0 deletions lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Exec.prototype.start = function(opts, callback) {
path: '/exec/' + this.id + '/start',
method: 'POST',
isStream: true,
allowEmpty: true,
hijack: args.opts.hijack,
openStdin: args.opts.stdin,
statusCodes: {
Expand Down
2 changes: 1 addition & 1 deletion 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.5.0",
"version": "2.5.1",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
8 changes: 4 additions & 4 deletions test/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe("#container", function() {
}, function(err, container) {
if (err) done(err);
testContainer = container.id;
console.log('Created test container ' + container.id);
done();
});
});
Expand Down Expand Up @@ -572,7 +573,7 @@ describe("#container", function() {

describe("#exec", function() {
it("should run exec on a container", function(done) {
this.timeout(10000);
this.timeout(20000);
var options = {
Cmd: ["echo", "'foo'"]
};
Expand All @@ -599,15 +600,14 @@ describe("#container", function() {
});

it("should allow exec stream hijacking on a container", function(done) {
this.timeout(10000);
this.timeout(20000);
var options = {
Cmd: ["cat"],
AttachStdin: true,
AttachStdout: true,
};
var startOpts = {
hijack: true,
stdin: true,
hijack: true
};

var container = docker.getContainer(testContainer);
Expand Down

0 comments on commit d2fdfa5

Please sign in to comment.