Browse files

SERVER-6226 - test for new behavior

  • Loading branch information...
1 parent 4e368bf commit 19b1fafe6e7d934f7aee2192bef139afc8345d41 @erh erh committed Jul 3, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 jstests/find_and_modify_server6226.js
View
7 jstests/find_and_modify_server6226.js
@@ -0,0 +1,7 @@
+
+t = db.find_and_modify_server6226;
+t.drop();
+
+ret = t.findAndModify( { query : { _id : 1 } , update : { "$inc" : { i : 1 } } , upsert : true } )
+assert.isnull( ret )
+

0 comments on commit 19b1faf

Please sign in to comment.