summaryrefslogtreecommitdiff
path: root/jstests/auth/copyauth.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/copyauth.js')
-rw-r--r--jstests/auth/copyauth.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/auth/copyauth.js b/jstests/auth/copyauth.js
index faf5badd5ff..9caa51a6e87 100644
--- a/jstests/auth/copyauth.js
+++ b/jstests/auth/copyauth.js
@@ -195,6 +195,10 @@ function copydbBetweenClustersTest(configObj) {
assert.eq(1, target.conn.getDB(baseName)[baseName].count());
assert.eq(1, target.conn.getDB(baseName)[baseName].findOne().i);
+ if (configObj.isTargetUsingAuth) {
+ target.conn.getDB("admin").logout();
+ }
+
// 4. Do any necessary cleanup
source.stop();
target.stop();