diff options
author | dwight <dwight@10gen.com> | 2011-01-22 21:54:27 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-01-22 21:54:27 -0500 |
commit | c5f147a35a209a54cced9399be5612333fe01cef (patch) | |
tree | 5d50e4f3270bac4622e7ea1b223596c2d56f6510 | |
parent | e55de40941f2055ebe22d431781181128160440a (diff) | |
download | mongo-c5f147a35a209a54cced9399be5612333fe01cef.tar.gz |
test output readability
-rw-r--r-- | jstests/dur/closeall.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jstests/dur/closeall.js b/jstests/dur/closeall.js index 0294e64645f..c9a9008fdfd 100644 --- a/jstests/dur/closeall.js +++ b/jstests/dur/closeall.js @@ -40,7 +40,8 @@ function f() { res = db2.adminCommand("closeAllDatabases");
}
catch (e) {
- print("\n\n\nFAIL closeall.js closeAllDatabases command invocation threw an exception. i:" + i + "\n\n\n");
+ sleep(5000); // sleeping a little makes console output order prettier
+ print("\n\n\nFAIL closeall.js closeAllDatabases command invocation threw an exception. i:" + i);
try {
print("getlasterror:");
printjson(db2.getLastErrorObj());
@@ -51,6 +52,7 @@ function f() { catch (e) {
print("got another exception : " + e);
}
+ print("\n\n\n");
// sleep a little to capture possible mongod output?
sleep(2000);
throw e;
@@ -64,7 +66,8 @@ function f() { print("closeall.js shutting down servers");
stopMongod(30002);
stopMongod(30001);
-} - -f(); +}
+
+f();
+sleep(500); print("SUCCESS closeall.js"); |