summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard7.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/shard7.js')
-rw-r--r--jstests/sharding/shard7.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/sharding/shard7.js b/jstests/sharding/shard7.js
index 7d37fdf60f6..18adbda3f0a 100644
--- a/jstests/sharding/shard7.js
+++ b/jstests/sharding/shard7.js
@@ -37,9 +37,11 @@ assert.eq( 0, aggregate.toArray().length );
c.save( {a:null,b:null} );
c.save( {a:1,b:1} );
-assert.writeOK( c.remove( unsatisfiable ));
+c.remove( unsatisfiable );
+assert( !db.getLastError() );
assert.eq( 2, c.count() );
-assert.writeOK( c.update( unsatisfiable, {$set:{c:1}}, false, true ));
+c.update( unsatisfiable, {$set:{c:1}}, false, true );
+assert( !db.getLastError() );
assert.eq( 2, c.count() );
assert.eq( 0, c.count( {c:1} ) );