Skip to content

Commit

Permalink
fix NumberInt problem in rs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Jul 6, 2011
1 parent f37b39f commit 6c1b310
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions jstests/replsets/priority1.js
Expand Up @@ -132,6 +132,11 @@ for (i=0; i<n; i++) {
count++;
}

assert.soon(function() {
rs.getMaster();
return rs.liveNodes.slaves.length == 2;
}, "2 slaves");

assert.soon(function() {
versions = [0,0];
rs.liveNodes.slaves[0].setSlaveOk();
Expand Down
5 changes: 2 additions & 3 deletions shell/servers.js
Expand Up @@ -1115,9 +1115,8 @@ ReplSetTest.prototype.getPath = function( n ){

if( n.host )
n = this.getNodeId( n )

var p = "/data/db/" + this.name + "-";
p += n.toString();

var p = "/data/db/" + this.name + "-"+n;
if ( ! this._alldbpaths )
this._alldbpaths = [ p ];
else
Expand Down

0 comments on commit 6c1b310

Please sign in to comment.