Permalink
Browse files

SERVER-4779 update test to characterize expected behavior

  • Loading branch information...
1 parent a4f4719 commit 4ad6e3c6b0e08a877cccf476ffa0c7fa694c2452 @astaple astaple committed Jan 25, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 jstests/updatej.js
View
@@ -1,4 +1,4 @@
-// Test that update validation failure doesn't terminate the update without modifying subsequent
+// Test that update validation failure terminates the update without modifying subsequent
// documents. SERVER-4779
t = db.jstests_updatej;
@@ -9,6 +9,4 @@ t.save( {a:1} );
t.save( {a:[]} );
t.update( {}, {$push:{a:2}}, false, true );
-if ( 0 ) { // SERVER-4779
-assert.eq( 2, t.count( {a:2} ) );
-}
+assert.eq( 1, t.count( {a:2} ) );

0 comments on commit 4ad6e3c

Please sign in to comment.