Skip to content

Commit

Permalink
SERVER-4779 update test to characterize expected behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Feb 7, 2012
1 parent a4f4719 commit 4ad6e3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 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;
Expand All @@ -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.