Permalink
Browse files

fix test

  • Loading branch information...
1 parent 4d9e44c commit 51f681328feb3dac52c27b9bb5c0d5b9a5cd671e @dwight dwight committed Apr 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 jstests/index_check8.js
View
@@ -10,7 +10,8 @@ t.ensureIndex({ a: 1, b: 1, d: 1, e: 1 })
if ((new Date()) % 10 == 0) {
var coll = t.toString().substring(db.toString().length + 1);
print("compacting " + coll + " before continuing testing");
- assert(db.runCommand({ compact: coll, dev: true }).ok, "compact failed");
+ // don't check return code - false for mongos
+ print("ok: " + db.runCommand({ compact: coll, dev: true }));
}
x = t.find( { a : 1 , b : 1 , d : 1 } ).sort( { e : 1 } ).explain()

0 comments on commit 51f6813

Please sign in to comment.