Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
100% coverage for the redis-broadcast-common file.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ellis committed Jun 17, 2013
1 parent 8964a9e commit 58f60a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ exports.quickCheckLocallyWithChildProc = function(test) {
});
};

exports.quickCheckFailingWrite = function(test) {
test.expect(1);
var myServers = new RedisBroadcast({
primary: [6379, 'localhost']
}, { useChildProcess: false });
var myWriter = myServers.writeTo('primary');
myWriter.set('foo', undefined, function(err) {
test.ok(err);
myServers.shutdown(test.done.bind(test));
});
};

exports.jscoverage = function(test) {
test.expect(3);
jscoverage.coverageDetail();
Expand Down

0 comments on commit 58f60a9

Please sign in to comment.