summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/traffic_reading.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/traffic_reading.js')
-rw-r--r--jstests/noPassthrough/traffic_reading.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/traffic_reading.js b/jstests/noPassthrough/traffic_reading.js
index aa29d360387..9b041085fe4 100644
--- a/jstests/noPassthrough/traffic_reading.js
+++ b/jstests/noPassthrough/traffic_reading.js
@@ -15,13 +15,13 @@ mkdir(recordingDir);
// Create the options and run mongod
var opts = {auth: "", setParameter: "trafficRecordingDirectory=" + recordingDir};
-m = MongoRunner.runMongod(opts);
+let m = MongoRunner.runMongod(opts);
// Get the port of the host
var serverPort = m.port;
// Create necessary users
-adminDB = m.getDB("admin");
+let adminDB = m.getDB("admin");
const testDB = m.getDB("test");
const coll = testDB.getCollection("foo");
adminDB.createUser({user: "admin", pwd: "pass", roles: jsTest.adminUserRoles});