From 91c65053af4c854d0dcf8ed49195e2e9c5dbd79f Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Sat, 24 May 2008 12:36:46 +0000 Subject: 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 --- share/www/script/couch_tests.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'share/www/script') 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"); -- cgit v1.2.3