Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Feb 12, 2015
1 parent fec514a commit 9f21729
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ Container.prototype.logs = function(opts, callback) {
* @param {Object} opts Stats options. (optional)
* @param {Function} callback Callback with data
*/
Container.prototype.stats = function(opts, callback) {
Container.prototype.stats = function(callback) {
var optsf = {
path: '/containers/' + this.id + '/stats?',
method: 'GET',
Expand All @@ -531,7 +531,7 @@ Container.prototype.stats = function(opts, callback) {
404: "no such container",
500: "server error"
},
options: opts
options: {}
};

this.modem.dial(optsf, function(err, data) {
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 client.",
"version": "2.0.6",
"version": "2.0.7",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
12 changes: 12 additions & 0 deletions test/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ describe("#container", function() {
});
});

describe("#stats", function() {
it("should get container stats", function(done) {
var container = docker.getContainer(testContainer);

container.stats(function(err, stream) {
expect(err).to.be.null;
expect(stream.pipe).to.be.ok;
done();
});
});
});

describe("#attach", function() {
var optsc = {
'Hostname': '',
Expand Down

0 comments on commit 9f21729

Please sign in to comment.