Skip to content

Commit 7cc92cc

Browse files
committed
test debugging
1 parent 2478a98 commit 7cc92cc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

jstests/replsets/remove1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ sleep(10000);
9191

9292

9393
print("Add them back as slaves");
94+
config.members.push({_id:1, host : host+":"+replTest.getPort(1)});
95+
config.members.push({_id:2, host : host+":"+replTest.getPort(2)});
96+
config.version = 4;
9497
wait(function() {
95-
config.members.push({_id:1, host : host+":"+replTest.getPort(1)});
96-
config.members.push({_id:2, host : host+":"+replTest.getPort(2)});
97-
config.version = 4;
9898
try {
9999
master.getDB("admin").runCommand({replSetReconfig:config});
100100
}

jstests/replsets/sync1.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ doTest = function (signal) {
203203

204204
count++;
205205
if (count == 100) {
206-
print(dbs[0].getSisterDB("admin").runCommand({replSetGetStatus:1}));
206+
printjson(dbs[0].isMaster());
207+
printjson(dbs[0].adminCommand({replSetGetStatus:1}));
208+
printjson(dbs[1].isMaster());
209+
printjson(dbs[1].adminCommand({replSetGetStatus:1}));
207210
pause("FAIL part 11");
208211
assert(false, "replsets/\nsync1.js fails timing out");
209212
replTest.stopSet(signal);

0 commit comments

Comments
 (0)