diff options
Diffstat (limited to 'jstests/auth2.js')
-rw-r--r-- | jstests/auth2.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/auth2.js b/jstests/auth2.js new file mode 100644 index 00000000000..9c2b38f682d --- /dev/null +++ b/jstests/auth2.js @@ -0,0 +1,9 @@ +// just make sure logout doesn't break anything + +// SERVER-724 +db.runCommand({logout : 1}); +x = db.runCommand({logout : 1}); +assert.eq( 1 , x.ok , "A" ) + +x = db.logout(); +assert.eq( 1 , x.ok , "B" ) |