You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2017/05/20 12:10:46 UTC

[couchdb] branch master updated (aca6a45 -> ee9261c)

This is an automated email from the ASF dual-hosted git repository.

jan pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git.

      from  aca6a45   better test as per @nickva
       new  dd524b1   chore: add dedbugging for failing test COUCHDB-3343
       new  ee9261c   add dedbugging for failing test COUCHDB-3343

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 test/javascript/couch_test_runner.js    | 10 ++++++++++
 test/javascript/tests/show_documents.js |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].

[couchdb] 01/02: chore: add dedbugging for failing test COUCHDB-3343

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit dd524b16b0d249579156682eebfd35bc96aa3f78
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sun May 14 13:06:47 2017 +0200

    chore: add dedbugging for failing test COUCHDB-3343
---
 test/javascript/couch_test_runner.js    | 9 +++++++++
 test/javascript/tests/show_documents.js | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/test/javascript/couch_test_runner.js b/test/javascript/couch_test_runner.js
index 421abd2..53593c3 100644
--- a/test/javascript/couch_test_runner.js
+++ b/test/javascript/couch_test_runner.js
@@ -321,6 +321,11 @@ function TEquals(expected, actual, testName) {
     "', got '" + repr(actual) + "'", testName);
 }
 
+function TNotEquals(expected, actual, testName) {
+  T(notEquals(expected, actual), "expected '" + repr(expected) +
+    "', got '" + repr(actual) + "'", testName);
+}
+
 function TEqualsIgnoreCase(expected, actual, testName) {
   T(equals(expected.toUpperCase(), actual.toUpperCase()), "expected '" + repr(expected) +
     "', got '" + repr(actual) + "'", testName);
@@ -335,6 +340,10 @@ function equals(a,b) {
   }
 }
 
+function notEquals(a,b) {
+  if (a != b) return true;
+}
+
 function repr(val) {
   if (val === undefined) {
     return null;
diff --git a/test/javascript/tests/show_documents.js b/test/javascript/tests/show_documents.js
index ca75637..50cb848 100644
--- a/test/javascript/tests/show_documents.js
+++ b/test/javascript/tests/show_documents.js
@@ -202,7 +202,7 @@ couchTests.show_documents = function(debug) {
   T(xhr.status == 404);
   var resp = JSON.parse(xhr.responseText);
   T(resp.error == "not_found");
-  
+
   // show with doc
   xhr = CouchDB.request("GET", "/" + db_name + "/_design/template/_show/just-name/"+docid);
   T(xhr.responseText == "Just Rusty");
@@ -293,7 +293,7 @@ couchTests.show_documents = function(debug) {
     headers: {"if-none-match": etag}
   });
   // should not be 304 if we change the doc
-  T(xhr.status != 304, "changed ddoc");
+  TNotEquals(304, xhr.status, "changed ddoc");
 
   // update design doc function
   designDoc.shows["just-name"] = stringFun(function(doc, req) {

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.

[couchdb] 02/02: add dedbugging for failing test COUCHDB-3343

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit ee9261c7699df8ebcafe9b1b2af7212d499a6b09
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sun May 14 13:06:47 2017 +0200

    add dedbugging for failing test COUCHDB-3343
---
 test/javascript/couch_test_runner.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/javascript/couch_test_runner.js b/test/javascript/couch_test_runner.js
index 53593c3..6567859 100644
--- a/test/javascript/couch_test_runner.js
+++ b/test/javascript/couch_test_runner.js
@@ -342,6 +342,7 @@ function equals(a,b) {
 
 function notEquals(a,b) {
   if (a != b) return true;
+  return false;
 }
 
 function repr(val) {

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.