diff options
Diffstat (limited to 'test/javascript/tests/rev_stemming.js')
-rw-r--r-- | test/javascript/tests/rev_stemming.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/javascript/tests/rev_stemming.js b/test/javascript/tests/rev_stemming.js index 238868f60..13fbdc407 100644 --- a/test/javascript/tests/rev_stemming.js +++ b/test/javascript/tests/rev_stemming.js @@ -69,7 +69,9 @@ couchTests.rev_stemming = function(debug) { // If you replicate after you make more edits than the limit, you'll // cause a spurious edit conflict. - CouchDB.replicate(db.name, dbB.name); + var rep_src = CouchDB.protocol + CouchDB.host + "/" + db.name; + var rep_tgt = CouchDB.protocol + CouchDB.host + "/" + dbB.name; + CouchDB.replicate(rep_src, rep_tgt); var docB1 = dbB.open("foo",{conflicts:true}) T(docB1._conflicts == null); @@ -79,7 +81,7 @@ couchTests.rev_stemming = function(debug) { } // one less edit than limit, no conflict - CouchDB.replicate(db.name, dbB.name); + CouchDB.replicate(rep_src, rep_tgt); var docB1 = dbB.open("foo",{conflicts:true}) T(docB1._conflicts == null); @@ -89,7 +91,7 @@ couchTests.rev_stemming = function(debug) { T(db.save(doc).ok); } - CouchDB.replicate(db.name, dbB.name); + CouchDB.replicate(rep_src, rep_tgt); var docB2 = dbB.open("foo",{conflicts:true}); |