diff options
author | Jason Smith (air) <jhs@apache.org> | 2012-02-29 03:41:31 +0000 |
---|---|---|
committer | Jason Smith (air) <jhs@apache.org> | 2012-02-29 03:41:31 +0000 |
commit | 269685050301e5c8759547c275b79a1814d3a5d8 (patch) | |
tree | c1d620ed10790f31adaf92b7a5f009f8f1510eb4 | |
parent | 1451ee57f2afdade5b24c3fb4ae37efadf9ef1ed (diff) | |
download | couchdb-269685050301e5c8759547c275b79a1814d3a5d8.tar.gz |
Compatibility with the CLI test runner
-rw-r--r-- | share/www/script/test/rewrite.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/share/www/script/test/rewrite.js b/share/www/script/test/rewrite.js index 5b8c74fd8..a30cd4f1a 100644 --- a/share/www/script/test/rewrite.js +++ b/share/www/script/test/rewrite.js @@ -455,13 +455,10 @@ couchTests.rewrite = function(debug) { var res = CouchDB.request("GET", "/test_suite_db/_design/rwtest/_rewrite/testShow"); TEquals('/test_suite_db/_design/rwtest/_rewrite/testShow', res.responseText, "requested_path should equal requested"); - var host = 'localhost:5984'; - if (window) host = window.location.host; - // test a vhost with a path as well run_on_modified_server( [{section: "vhosts", - key: encodeURIComponent(host + '/path'), + key: encodeURIComponent(CouchDB.host + '/path'), value: "/test_suite_db/_design/rwtest/_rewrite/"} ], function(){ @@ -483,7 +480,7 @@ couchTests.rewrite = function(debug) { // so that vhosts gets remove first, then the secure_rewrite run_on_modified_server( [{section: "vhosts", - key: encodeURIComponent(host), + key: encodeURIComponent(CouchDB.host), value: "/test_suite_db/_design/rwtest/_rewrite/"} ], function() { |