summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/traffic_reading.js
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2023-05-07 16:15:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-07 16:55:23 +0000
commit43b87324302209cbfa240d6c6b520007669e4ea6 (patch)
tree7039a07f7116ad86df64fd21eee62f84053ba92e /jstests/noPassthrough/traffic_reading.js
parent948bf37c910d9911160e3b275d3c51b146a9c923 (diff)
downloadmongo-43b87324302209cbfa240d6c6b520007669e4ea6.tar.gz
SERVER-74787 Prepare jstest corpus for implicit strict 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});