Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-4779 update test to characterize expected behavior

  • Loading branch information...
commit 4ad6e3c6b0e08a877cccf476ffa0c7fa694c2452 1 parent a4f4719
@astaple astaple authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 jstests/updatej.js
View
6 jstests/updatej.js
@@ -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} ) );
Please sign in to comment.
Something went wrong with that request. Please try again.