summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_tests.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index 46e42464..e88c68d1 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -10,6 +10,11 @@
// License for the specific language governing permissions and limitations under
// the License.
+// Used by replication test
+CouchDB.host = (typeof window == 'undefined' || !window) ?
+ "127.0.0.1" : window.location.host;
+CouchDB.port = 5984;
+
var tests = {
// Do some basic tests.
@@ -1556,7 +1561,7 @@ var tests = {
replication: function(debug) {
if (debug) debugger;
- var host = window.location.host;
+ var host = CouchDB.host;
var dbPairs = [
{source:"test_suite_db_a",
target:"test_suite_db_b"},