summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/exit_logging.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/noPassthrough/exit_logging.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/noPassthrough/exit_logging.js')
-rw-r--r--jstests/noPassthrough/exit_logging.js51
1 files changed, 22 insertions, 29 deletions
diff --git a/jstests/noPassthrough/exit_logging.js b/jstests/noPassthrough/exit_logging.js
index 0647f312cc4..f996766866f 100644
--- a/jstests/noPassthrough/exit_logging.js
+++ b/jstests/noPassthrough/exit_logging.js
@@ -25,23 +25,23 @@
function checkOutput() {
var logContents = "";
- assert.soon(() =>
- {
- logContents = rawMongoProgramOutput();
- return matchFn(logContents);
- },
- function() {
- // We can't just return a string because it will be well over the max
- // line length.
- // So we just print manually.
- print("================ BEGIN LOG CONTENTS ==================");
- logContents.split(/\n/).forEach((line) => {
- print(line);
- });
- print("================ END LOG CONTENTS =====================");
- return "";
- },
- 30000);
+ assert.soon(
+ () => {
+ logContents = rawMongoProgramOutput();
+ return matchFn(logContents);
+ },
+ function() {
+ // We can't just return a string because it will be well over the max
+ // line length.
+ // So we just print manually.
+ print("================ BEGIN LOG CONTENTS ==================");
+ logContents.split(/\n/).forEach((line) => {
+ print(line);
+ });
+ print("================ END LOG CONTENTS =====================");
+ return "";
+ },
+ 30000);
}
try {
@@ -55,12 +55,9 @@
function runAllTests(launcher) {
const SIGSEGV = 11;
const SIGABRT = 6;
- testShutdownLogging(launcher,
- function(conn) {
- conn.getDB('admin').shutdownServer();
- },
- makeRegExMatchFn(/shutdown command received/),
- MongoRunner.EXIT_CLEAN);
+ testShutdownLogging(launcher, function(conn) {
+ conn.getDB('admin').shutdownServer();
+ }, makeRegExMatchFn(/shutdown command received/), MongoRunner.EXIT_CLEAN);
testShutdownLogging(launcher,
makeShutdownByCrashFn('fault'),
@@ -88,9 +85,7 @@
runAllTests({
start: function(opts) {
- var actualOpts = {
- nojournal: ""
- };
+ var actualOpts = {nojournal: ""};
Object.extend(actualOpts, opts);
return MongoRunner.runMongod(actualOpts);
},
@@ -105,9 +100,7 @@
var st = new ShardingTest({shards: 1, other: {shardOptions: {nojournal: ""}}});
var mongosLauncher = {
start: function(opts) {
- var actualOpts = {
- configdb: st._configDB
- };
+ var actualOpts = {configdb: st._configDB};
Object.extend(actualOpts, opts);
return MongoRunner.runMongos(actualOpts);
},