summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/test.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test.js b/test/test.js
index 1d3e989b..e47153bd 100644
--- a/test/test.js
+++ b/test/test.js
@@ -118,11 +118,10 @@ var HTTP = (function() {
// Monkeypatches to CouchDB client for use of curl.
-CouchDB.host = (typeof window == 'undefined' || !window) ? "127.0.0.1" : window;
-CouchDB.port = 5984;
+CouchDB.host = (typeof window == 'undefined' || !window) ? "127.0.0.1:5984" : window;
CouchDB.request = function(method, uri, options) {
- var full_uri = "http://" + CouchDB.host + ":" + CouchDB.port + uri;
+ var full_uri = "http://" + CouchDB.host + uri;
options = options || {};
var response = HTTP[method](full_uri, options.body, options.headers);
return response;
@@ -239,7 +238,6 @@ function T(arg1, arg2) {
p("Running CouchDB Test Suite\n");
p("Host: "+CouchDB.host);
-p("Port: "+CouchDB.port);
try {
p("Version: "+CouchDB.getVersion()+"\n");