summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-10-11 17:58:48 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-10-11 17:58:48 +0000
commitcee21845f63f5755212ae959b8dfcd0d9f890537 (patch)
treee497f541e54c91e317f5a5fa287a94b5a6de39a7 /share
parent87ff6da9038ee7d8e8d0c4e78741a01375cec92b (diff)
simplified CouchDB.port handling in tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@703698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/couch_tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index 0339dda6..8876cab8 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -12,8 +12,7 @@
// Used by replication test
CouchDB.host = (typeof window == 'undefined' || !window) ?
- "127.0.0.1" : window.location.host;
-CouchDB.port = 5984;
+ "127.0.0.1:5984" : window.location.host;
var tests = {
@@ -1868,8 +1867,9 @@ var tests = {
// test that /_config returns all the settings
var xhr = CouchDB.request("GET", "/_config");
var config = JSON.parse(xhr.responseText);
+ var port = CouchDB.host.split(':').pop()
T(config.couchdb.database_dir);
- T(config.httpd.port == CouchDB.port);
+ T(config.httpd.port == port);
T(config.daemons.httpd);
T(config.httpd_global_handlers._config);
T(config.log.level);