summaryrefslogtreecommitdiff
path: root/jstests/dur
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-01-22 21:49:00 -0500
committerdwight <dwight@10gen.com>2011-01-22 21:49:00 -0500
commitf522e3cf7867996d602a653a5281d130b9fd6d81 (patch)
treef07cc4c77b4d499407a589c56acdbbffcc8ada2c /jstests/dur
parent097a82fda953a52f782f2c081a9fd9baeefb5b22 (diff)
downloadmongo-f522e3cf7867996d602a653a5281d130b9fd6d81.tar.gz
more debugging for test
Diffstat (limited to 'jstests/dur')
-rw-r--r--jstests/dur/closeall.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/dur/closeall.js b/jstests/dur/closeall.js
index 6e2cf32e8c6..7a4387ad821 100644
--- a/jstests/dur/closeall.js
+++ b/jstests/dur/closeall.js
@@ -41,6 +41,16 @@ function f() {
}
catch (e) {
print("\n\n\nFAIL closeall.js closeAllDatabases command invocation threw an exception. i:" + i + "\n\n\n");
+ try {
+ print("getlasterror:");
+ printjson(db2.getLastErrorObj());
+ print("trying one more closealldatabases:");
+ res = db2.adminCommand("closeAllDatabases");
+ printjson(res);
+ }
+ catch (e) {
+ print("got another exception : " + e);
+ }
throw e;
}
assert( res.ok, "closeAllDatabases res.ok=false");