You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/08/28 19:35:41 UTC

[46/50] [abbrv] couch commit: updated refs/heads/1963-eunit-bigcouch to 3ecd0a0

Config set requires a value as a list, not a binary


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

Branch: refs/heads/1963-eunit-bigcouch
Commit: 762da197eceb35848d01f5fa77ca756adf09303c
Parents: 733d953
Author: Russell Branca <ch...@apache.org>
Authored: Fri Aug 15 12:31:59 2014 -0700
Committer: Russell Branca <ch...@apache.org>
Committed: Thu Aug 28 10:34:30 2014 -0700

----------------------------------------------------------------------
 test/couchdb_cors_tests.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/762da197/test/couchdb_cors_tests.erl
----------------------------------------------------------------------
diff --git a/test/couchdb_cors_tests.erl b/test/couchdb_cors_tests.erl
index 02f9da9..52d1797 100644
--- a/test/couchdb_cors_tests.erl
+++ b/test/couchdb_cors_tests.erl
@@ -244,7 +244,7 @@ should_make_origin_request_with_auth(_, {_, _, Url, DefaultHeaders}) ->
     ?_assertEqual("http://example.com",
         begin
             Hashed = couch_passwords:hash_admin_password(<<"test">>),
-            config:set("admins", "test", Hashed, false),
+            config:set("admins", "test", ?b2l(Hashed), false),
             {ok, _, Resp, _} = test_request:get(
                 Url, DefaultHeaders, [{basic_auth, {"test", "test"}}]),
             config:delete("admins", "test", false),
@@ -255,7 +255,7 @@ should_make_preflight_request_with_auth(_, {_, _, Url, DefaultHeaders}) ->
     ?_assertEqual(?SUPPORTED_METHODS,
         begin
             Hashed = couch_passwords:hash_admin_password(<<"test">>),
-            config:set("admins", "test", Hashed, false),
+            config:set("admins", "test", ?b2l(Hashed), false),
             Headers = DefaultHeaders
                       ++ [{"Access-Control-Request-Method", "GET"}],
             {ok, _, Resp, _} = test_request:options(