load("jstests/libs/kill_sessions.js"); (function() { 'use strict'; // This test involves killing all sessions, which will not work as expected if the kill command is // sent with an implicit session. TestData.disableImplicitSessions = true; var forExec = MongoRunner.runMongod({auth: ""}); var forKill = new Mongo(forExec.host); var forVerify = new Mongo(forExec.host); KillSessionsTestHelper.initializeAuth(forExec); forVerify.getDB("admin").auth("super", "password"); KillSessionsTestHelper.runAuth(forExec, forKill, [forVerify]); MongoRunner.stopMongod(forExec); })();