diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2012-03-06 16:44:40 -0500 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2012-03-08 19:48:51 -0500 |
commit | d06ef3bd8e857fbe20d671a366f1696d8c3b2a27 (patch) | |
tree | dc6827cafb49d6617bf4d1ee8ba6c24fd02cdcba /jstests | |
parent | 5cf72997e3bb116d90f7d9969c6f6b4028a5f8f0 (diff) | |
download | mongo-d06ef3bd8e857fbe20d671a366f1696d8c3b2a27.tar.gz |
fix broken bits in reenabled test
Prep for SERVER-4692
Uncovered SERVER-5228
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/auth/auth1.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index 06d2d2237f4..582fa38907d 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -65,7 +65,7 @@ assert.eq( 1000, t.count() , "B6" ); assert.eq( 2, db.system.users.count() , "B7" ); assert( !db.getLastError() , "B8" ); -db.addUser( "a", "b" ); +assert.throws(function(){db.addUser( "a", "b" )}); assert( db.getLastError() , "B9" ); assert.eq( 2, db.system.users.count() , "B10"); @@ -81,5 +81,8 @@ var p = { key : { i : true } , initial: { count: 0 } }; -assert.throws( function() { return t.group( p ) }, null , "write reduce didn't fail" ); +// this no longer throws (but the saves silently fail) SERVER-5228 +//assert.throws( function() { return t.group( p ) }, null , "write reduce didn't fail" ); +assert.eq( 1000, t.group( p ).length , "C6" ); +assert.eq( 1000, db.jstests_auth_auth1.count() , "C7" ); |