Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Parente committed Feb 10, 2018
1 parent a864340 commit 5780247
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/producer.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ Producer.prototype.disconnect = function(timeout, cb) {
this.flush(timeoutInterval, function() {
self._disconnect(cb);
});
}
};
2 changes: 2 additions & 0 deletions test/binding.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ var producerConfig = {
'socket.timeout.ms': 250
};

var client;

module.exports = {
'native addon': {
'exports something': function() {
Expand Down
6 changes: 3 additions & 3 deletions test/producer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
});
},
'has "_disconnect" override': function() {
t.equal(typeof(client['_disconnect']), 'function', 'Producer is missing base _disconnect method');
t.equal(typeof(client._disconnect), 'function', 'Producer is missing base _disconnect method');
},
'disconnect method': {
'calls flush before it runs': function(next) {
Expand All @@ -57,7 +57,7 @@ module.exports = {

client._disconnect = function(cb) {
setImmediate(cb);
}
};

client.disconnect(providedTimeout, next);
},
Expand All @@ -72,7 +72,7 @@ module.exports = {

client._disconnect = function(cb) {
setImmediate(cb);
}
};

client.disconnect(next);
}
Expand Down

0 comments on commit 5780247

Please sign in to comment.