From bebb6e35482fd706cdfd89fe2c70a925faa47d42 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 14 Dec 2018 18:13:17 +0000 Subject: [PATCH] SERVER-38644 Handle race condition while enumerating files in test --- jstests/noPassthrough/umask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jstests/noPassthrough/umask.js b/jstests/noPassthrough/umask.js index b787bb1f7f6..051148de613 100644 --- a/jstests/noPassthrough/umask.js +++ b/jstests/noPassthrough/umask.js @@ -73,8 +73,8 @@ // Restart the mongod with honorSystemUmask, all files should have the mode 0666 mongodOptions.setParameter = {honorSystemUmask: true}; conn = MongoRunner.runMongod(mongodOptions); + MongoRunner.stopMongod(conn); checkMask(conn.fullOptions.dbpath, permissiveUmask, false); - MongoRunner.stopMongod(conn); umask(oldUmask.valueOf()); })();