diff options
author | Randolph Tan <randolph@10gen.com> | 2014-03-14 11:43:25 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-03-26 15:56:05 -0400 |
commit | 6d3cacf2bd81f2d818cbf5809bda9adb0a64f536 (patch) | |
tree | 0439f2d0651b6453254a6e7a14b160792e4a0527 /jstests/auth/auth1.js | |
parent | 376a9b28361bb55a7d2cbd2ebd30df39a7526098 (diff) | |
download | mongo-6d3cacf2bd81f2d818cbf5809bda9adb0a64f536.tar.gz |
SERVER-13191 migrate auth jstest suite to use write commands api
(cherry picked from commit 386f1b32babc38daafad97949056ac953d53b3b0)
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r-- | jstests/auth/auth1.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index a7b67cdb04b..f5e9a877ad4 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -64,9 +64,8 @@ assert.eq( 1000, tRO.count() , "B1" ); assert.eq( 1000, tRO.find().toArray().length , "B2" ); // make sure we have a getMore in play assert.commandWorked( dbRO.runCommand( {ismaster:1} ) , "B3" ); -assert( !dbRO.getLastError() , "B4" ); -tRO.save( {} ); // fail -assert( dbRO.getLastError() , "B5: " + tojson( dbRO.getLastErrorObj() ) ); +assert.writeError(tRO.save({})); + assert.eq( 1000, tRO.count() , "B6" ); assert.eq( 1000, tRO.group( p ).length , "C1" ); |