diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-05-04 20:46:42 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-05-04 20:46:42 +0000 |
commit | d7d047f439880735377a4b8ea2ce2ef42921fff8 (patch) | |
tree | bfe733b55bcca11f6ccd30f9cea70e8800ca7b3c /test/etap | |
parent | 33b3524268195a0798993690b54cead286da28fb (diff) |
use crypto:md5 when available. thx fdmanana. Closes COUCHDB-757
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@941033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/etap')
-rwxr-xr-x | test/etap/130-attachments-md5.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/etap/130-attachments-md5.t b/test/etap/130-attachments-md5.t index 5521632a..4c40f83a 100755 --- a/test/etap/130-attachments-md5.t +++ b/test/etap/130-attachments-md5.t @@ -103,7 +103,7 @@ test_identity_with_valid_md5() -> "PUT /", test_db_name(), "/", docid(), "/readme.txt HTTP/1.1\r\n", "Content-Type: text/plain\r\n", "Content-Length: 34\r\n", - "Content-MD5: ", base64:encode(erlang:md5(AttData)), "\r\n", + "Content-MD5: ", base64:encode(couch_util:md5(AttData)), "\r\n", "\r\n", AttData], @@ -118,7 +118,7 @@ test_chunked_with_valid_md5_header() -> "PUT /", test_db_name(), "/", docid(), "/readme.txt HTTP/1.1\r\n", "Content-Type: text/plain\r\n", "Transfer-Encoding: chunked\r\n", - "Content-MD5: ", base64:encode(erlang:md5(AttData)), "\r\n", + "Content-MD5: ", base64:encode(couch_util:md5(AttData)), "\r\n", "\r\n", to_hex(size(Part1)), "\r\n", Part1, "\r\n", @@ -145,7 +145,7 @@ test_chunked_with_valid_md5_trailer() -> to_hex(size(Part2)), "\r\n", Part2, "\r\n", "0\r\n", - "Content-MD5: ", base64:encode(erlang:md5(AttData)), "\r\n", + "Content-MD5: ", base64:encode(couch_util:md5(AttData)), "\r\n", "\r\n"], {Code, Json} = do_request(Data), |