summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-05-24 12:36:46 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-05-24 12:36:46 +0000
commit91c65053af4c854d0dcf8ed49195e2e9c5dbd79f (patch)
tree8d0785cb879211328c38aad6060b6f84f5d883b1 /share/www/script
parent45aff15bc4645be95da466b9d402940d9f386419 (diff)
Make replication tests use current host instead of hardcoding localhost:5984
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/couch_tests.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index 8ec727e7..ea31e140 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -770,15 +770,16 @@ var tests = {
replication: function(debug) {
if (debug) debugger;
+ var host = window.location.host;
var dbPairs = [
{source:"test_suite_db_a",
target:"test_suite_db_b"},
{source:"test_suite_db_a",
- target:"http://localhost:5984/test_suite_db_b"},
- {source:"http://localhost:5984/test_suite_db_a",
+ target:"http://" + host + "/test_suite_db_b"},
+ {source:"http://" + host + "/test_suite_db_a",
target:"test_suite_db_b"},
- {source:"http://localhost:5984/test_suite_db_a",
- target:"http://localhost:5984/test_suite_db_b"}
+ {source:"http://" + host + "/test_suite_db_a",
+ target:"http://" + host + "/test_suite_db_b"}
]
var dbA = new CouchDB("test_suite_db_a");
var dbB = new CouchDB("test_suite_db_b");