summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-01-22 21:54:27 -0500
committerdwight <dwight@10gen.com>2011-01-22 21:54:27 -0500
commitc5f147a35a209a54cced9399be5612333fe01cef (patch)
tree5d50e4f3270bac4622e7ea1b223596c2d56f6510
parente55de40941f2055ebe22d431781181128160440a (diff)
downloadmongo-c5f147a35a209a54cced9399be5612333fe01cef.tar.gz
test output readability
-rw-r--r--jstests/dur/closeall.js11
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");