Skip to content

Commit

Permalink
Behaviour change.
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jun 8, 2017
1 parent acdfd45 commit c2ee55b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions test/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,13 @@ describe("#container", function() {
container.start(function(err, data) {
expect(err).to.be.null;

stream.write(randomString(size) + '\n\x04');
var aux = randomString(size) + '\n\x04';
stream.write(aux);

container.wait(function(err, data) {
expect(err).to.be.null;
expect(data).to.be.ok;
expect(+output.slice(size + 2)).to.equal(size + 1);
expect(+output.slice(size)).to.equal(size + 1);
done();
});
});
Expand Down
4 changes: 1 addition & 3 deletions test/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ describe("#plugin", function() {

function handler(err, data) {
expect(err).to.be.null;
expect(data).to.be.ok;
installed = true;
done();
}

plugin.enable({
'Timeout': 5
'timeout': 5
}, handler);
});

Expand All @@ -98,7 +97,6 @@ describe("#plugin", function() {
function handler(err, data) {
if (installed === true) {
expect(err).to.be.null;
expect(data).to.be.ok;
} else {
expect(err).to.be.ok;
}
Expand Down

0 comments on commit c2ee55b

Please sign in to comment.