couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r659808 - /incubator/couchdb/trunk/share/www/script/couch_tests.js
Date Sat, 24 May 2008 12:36:46 GMT
Author: cmlenz
Date: Sat May 24 05:36:46 2008
New Revision: 659808

URL: http://svn.apache.org/viewvc?rev=659808&view=rev
Log:
Make replication tests use current host instead of hardcoding localhost:5984

Modified:
    incubator/couchdb/trunk/share/www/script/couch_tests.js

Modified: incubator/couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch_tests.js?rev=659808&r1=659807&r2=659808&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] Sat May 24 05:36:46 2008
@@ -770,15 +770,16 @@
 
   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");



Mime
View raw message