summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2020-01-08 13:49:39 -0600
committerNick Vatamaniuc <nickva@users.noreply.github.com>2020-01-08 16:09:41 -0500
commitc4d4590dee9e30807445dda8e3ac157bef3c37d9 (patch)
tree69be2be9b63dc642e8eda11f4c9a7fb96971f183
parent2dae25e94cc98497663afdeb0abc7c542cd74325 (diff)
downloadcouchdb-c4d4590dee9e30807445dda8e3ac157bef3c37d9.tar.gz
Debug design_docs.js failure
This test has been failing randomly on Jenkins across multiple PRs. This adds more context to the error that causes the test to fail.
-rw-r--r--test/javascript/tests/design_docs.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/javascript/tests/design_docs.js b/test/javascript/tests/design_docs.js
index e28cb2e83..55e592a18 100644
--- a/test/javascript/tests/design_docs.js
+++ b/test/javascript/tests/design_docs.js
@@ -427,10 +427,12 @@ couchTests.design_docs = function(debug) {
ddoc._deleted = true;
TEquals(true, db.save(ddoc).ok);
+ var resp = db.save({_id: "doc1", value: 4})
try {
- TEquals(true, db.save({_id: "doc1", value: 4}).ok);
+ TEquals(true, resp.ok);
} catch (x) {
- T(false, "doc insertion should have succeeded");
+ resp = JSON.stringify(resp)
+ T(false, "doc insertion should have succeeded: " + resp);
}
doc = db.open("doc1");