Browse files

Fixed broken test

  • Loading branch information...
1 parent 049c091 commit 87017553ea692a0cce6cb523005794fac88370cc @christkv christkv committed Apr 5, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/tests/repl_set/secondary_queries_tests.js
View
7 test/tests/repl_set/secondary_queries_tests.js
@@ -150,6 +150,9 @@ exports['Should correctly read from secondary even if primary is down'] = functi
// Run a simple query
collection.findOne(function (err, doc) {
+ // console.log("======================================== 0")
+ // console.dir(err)
+ // console.dir(doc)
test.ok(err == null);
test.ok(1, doc.a);
@@ -159,6 +162,10 @@ exports['Should correctly read from secondary even if primary is down'] = functi
// Run a simple query
collection.findOne(function (err, doc) {
+ // console.log("======================================== 1")
+ // console.dir(err)
+ // console.dir(doc)
+
test.ok(Object.keys(replSet._state.secondaries).length > 0);
test.equal(null, err);
test.ok(doc != null);

0 comments on commit 8701755

Please sign in to comment.