diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/couch_tests.js | 9 |
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"); |