summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/lock_file.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/lock_file.js')
-rw-r--r--jstests/noPassthrough/lock_file.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/noPassthrough/lock_file.js b/jstests/noPassthrough/lock_file.js
index 68240017c1a..cb7e96c2563 100644
--- a/jstests/noPassthrough/lock_file.js
+++ b/jstests/noPassthrough/lock_file.js
@@ -15,15 +15,14 @@
}
var baseName = "jstests_lock_file";
- var port = allocatePorts(1)[0] ;
var dbpath = MongoRunner.dataPath + baseName + '/';
// Test framework will append --storageEngine command line option if provided to smoke.py.
- startMongodEmpty('--port', port, '--dbpath', dbpath, '--smallfiles');
+ var mongod = MongoRunner.runMongod({dbpath: dbpath, smallfiles: ""});
assert.neq(0, getMongodLockFileSize(dbpath),
'mongod.lock should not be empty while server is running');
- stopMongod(port);
+ MongoRunner.stopMongod(mongod);
// mongod.lock must be empty after shutting server down.
assert.eq(0, getMongodLockFileSize(dbpath),