Permalink
Browse files

fix SERVER-1366 test

  • Loading branch information...
1 parent 2944e79 commit d531ce99d6deea9a21fd332a483987bfc050a366 @erh erh committed Jul 6, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 jstests/in5.js
View
9 jstests/in5.js
@@ -18,8 +18,9 @@ function go( fn ){
z = {};
- z[fn] = { a : 1 , b : { $in : [ 2 ] } }
- //assert.eq( 1 , t.find( z ).itcount() , "A3 - " + fn ); // SERVER-1366
+ z[fn+".a"] = 1;
+ z[fn+".b"] = { $in : [ 2 ] }
+ assert.eq( 1 , t.find( z ).itcount() , "A3 - " + fn ); // SERVER-1366
i = {}
@@ -28,7 +29,7 @@ function go( fn ){
assert.eq( 1 , t.find( x ).itcount() , "B1 - " + fn );
assert.eq( 1 , t.find( y ).itcount() , "B2 - " + fn );
- //assert.eq( 1 , t.find( z ).itcount() , "B3 - " + fn ); // SERVER-1366
+ assert.eq( 1 , t.find( z ).itcount() , "B3 - " + fn ); // SERVER-1366
t.dropIndex( i )
@@ -41,7 +42,7 @@ function go( fn ){
assert.eq( 1 , t.find( x ).itcount() , "C1 - " + fn );
assert.eq( 1 , t.find( y ).itcount() , "C2 - " + fn );
- //assert.eq( 1 , t.find( z ).itcount() , "C3 - " + fn ); // SERVER-1366
+ assert.eq( 1 , t.find( z ).itcount() , "C3 - " + fn ); // SERVER-1366
t.dropIndex( i )

0 comments on commit d531ce9

Please sign in to comment.