Skip to content

Commit

Permalink
fix(cluster): fix test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 7, 2016
1 parent cefe973 commit a5b64ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cluster/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var ConnectionPool = require('./connection_pool');
* @param {Object} options
* @param {boolean} [options.enableOfflineQueue=true] - See Redis class
* @param {boolean} [options.lazyConnect=false] - See Redis class
* @param {string} [options.scaleReads="masters"] - Scale reads to the node with the specified role.
* @param {string} [options.scaleReads=masters] - Scale reads to the node with the specified role.
* Available values are "masters", "slaves" and "all".
* @param {number} [options.maxRedirections=16] - When a MOVED or ASK error is received, client will redirect the
* command to another node. This option limits the max redirections allowed to send a command.
Expand Down Expand Up @@ -215,7 +215,7 @@ Cluster.prototype.disconnect = function (reconnect) {
/**
* Get nodes with the specified role
*
* @param {string} [role="all"] - role, "masters", "slaves" or "all"
* @param {string} [role=all] - role, "masters", "slaves" or "all"
* @return {Redis[]} array of nodes
* @public
*/
Expand Down
2 changes: 1 addition & 1 deletion test/unit/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('cluster', function () {
var cluster = new Cluster([{ port: 7777 }], options);
expect(cluster.options).to.have.property('showFriendlyErrorStack', false);
expect(cluster.options).to.have.property('showFriendlyErrorStack', false);
expect(cluster.options).to.have.property('readOnly', false);
expect(cluster.options).to.have.property('scaleReads', 'masters');
});

it('should throw when startupNodes is not an array or is empty', function () {
Expand Down

0 comments on commit a5b64ad

Please sign in to comment.