couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [30/35] couchdb commit: updated refs/heads/2876-js-tests-merged to 6d9b2eb
Date Sat, 12 Dec 2015 16:01:51 GMT
fix attachments.js,  was reading test data from wrong port


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d4850e28
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d4850e28
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d4850e28

Branch: refs/heads/2876-js-tests-merged
Commit: d4850e28b4f29fd2a4899fd4b338de6b254a4ea5
Parents: 330c5b0
Author: Jan Lehnardt <jan@apache.org>
Authored: Sat Dec 12 12:41:16 2015 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sat Dec 12 15:25:11 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/attachments.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d4850e28/test/javascript/tests/attachments.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/attachments.js b/test/javascript/tests/attachments.js
index c34de05..b3b2e2f 100644
--- a/test/javascript/tests/attachments.js
+++ b/test/javascript/tests/attachments.js
@@ -217,8 +217,7 @@ couchTests.attachments= function(debug) {
 */
 
   // test large attachments - COUCHDB-366
-  var lorem = CouchDB.request("GET", "http://localhost:15986/_utils/test/lorem.txt").responseText;
-  
+  var lorem = CouchDB.request("GET", "http://localhost:15984/_utils/test/lorem.txt").responseText;
   var xhr = CouchDB.request("PUT", "/" + db_name + "/bin_doc5/lorem.txt", {
     headers:{"Content-Type":"text/plain;charset=utf-8"},
     body:lorem
@@ -231,7 +230,7 @@ couchTests.attachments= function(debug) {
   TEqualsIgnoreCase("text/plain;charset=utf-8", xhr.getResponseHeader("Content-Type"));
 
   // test large inline attachment too
-  var lorem_b64 = CouchDB.request("GET", "http://localhost:15986/_utils/test/lorem_b64.txt");
+  var lorem_b64 = CouchDB.request("GET", "http://localhost:15984/_utils/test/lorem_b64.txt");
   lorem_b64 = lorem_b64.responseText;
   var doc = db.open("bin_doc5", {attachments:true});
   TEquals(lorem_b64, doc._attachments["lorem.txt"].data, 'binary attachment data should match');


Mime
View raw message