couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [03/12] couchdb commit: updated refs/heads/2876-js-tests to def9465
Date Thu, 12 Nov 2015 21:23:41 GMT
Solve the issue of DB not found - point out fix


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3cb3e2cd
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3cb3e2cd
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3cb3e2cd

Branch: refs/heads/2876-js-tests
Commit: 3cb3e2cd7f5003affd3203cbf1a0c8ebd11f75a4
Parents: d840883
Author: sebastianro <sebastianro@apache.org>
Authored: Tue Nov 10 20:56:02 2015 +0100
Committer: sebastianro <sebastianro@apache.org>
Committed: Thu Nov 12 21:56:05 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/replicator_db_bad_rep_id.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3cb3e2cd/test/javascript/tests/replicator_db_bad_rep_id.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/replicator_db_bad_rep_id.js b/test/javascript/tests/replicator_db_bad_rep_id.js
index 0c064c3..529bbaa 100644
--- a/test/javascript/tests/replicator_db_bad_rep_id.js
+++ b/test/javascript/tests/replicator_db_bad_rep_id.js
@@ -31,8 +31,9 @@ couchTests.replicator_db_bad_rep_id = function(debug) {
 
     var repDoc = {
       _id: "foo_rep",
-      source: dbA.name,
-      target: dbB.name,
+// TODO: fix DB name issue and remove absolute URL again
+      source: 'http://localhost:15984/'+dbA.name,
+      target: 'http://localhost:15984/'+dbB.name,
       replication_id: "1234abc"
     };
     T(replDb.save(repDoc).ok);
@@ -77,9 +78,9 @@ couchTests.replicator_db_bad_rep_id = function(debug) {
     var replDoc = replDb.open("foo_rep");
     if(replDoc!=null) {
       if(show) {
-        console.log(JSON.stringify(replDoc));
+        //console.log(JSON.stringify(replDoc));
       }
-      //replDb.deleteDoc(replDoc);
+      replDb.deleteDoc(replDoc);
     }
   }
 


Mime
View raw message