mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
11 lines
217 B
JavaScript
11 lines
217 B
JavaScript
// just make sure logout doesn't break anything
|
|
// @tags: [requires_auth]
|
|
|
|
// 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");
|