diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-06-22 13:49:25 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-06-22 13:49:25 -0400 |
commit | 5798ea831b53e4c303c57cb14e72406a789fc86a (patch) | |
tree | 476ea107b11c49af1773797b04638de601ca4fd8 /jstests/auth2.js | |
parent | 403b7aa8a28094fb4f541a86d8f89c0c794ef329 (diff) | |
download | mongo-5798ea831b53e4c303c57cb14e72406a789fc86a.tar.gz |
db.logout() command
Diffstat (limited to 'jstests/auth2.js')
-rw-r--r-- | jstests/auth2.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/auth2.js b/jstests/auth2.js index 9b6dfada215..9c2b38f682d 100644 --- a/jstests/auth2.js +++ b/jstests/auth2.js @@ -2,4 +2,8 @@ // SERVER-724 db.runCommand({logout : 1}); -db.runCommand({logout : 1}); +x = db.runCommand({logout : 1}); +assert.eq( 1 , x.ok , "A" ) + +x = db.logout(); +assert.eq( 1 , x.ok , "B" ) |