diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/http.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/www/script/test/http.js b/share/www/script/test/http.js index 05bd471e..8a2e09b8 100644 --- a/share/www/script/test/http.js +++ b/share/www/script/test/http.js @@ -21,10 +21,11 @@ couchTests.http = function(debug) { // PUT on existing DB should return 412 instead of 500 if (debug) debugger; - + var xhr = CouchDB.request("PUT", "/test_suite_db/test", {body: "{}"}); - - TEquals("http://127.0.0.1:5984/test_suite_db/test", + var host = CouchDB.host; + + TEquals("http://" + host + "/test_suite_db/test", xhr.getResponseHeader("Location"), "should include ip address"); |