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/26 22:51:55 UTC

[35/42] couch commit: updated refs/heads/1963-eunit-bigcouch to c3f3807

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/1354bd15
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/1354bd15
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/1354bd15

Branch: refs/heads/1963-eunit-bigcouch
Commit: 1354bd159068d0c80e34925f520e177d451ff18b
Parents: 7fba43a
Author: Russell Branca <ch...@apache.org>
Authored: Fri Aug 15 12:31:59 2014 -0700
Committer: Russell Branca <ch...@apache.org>
Committed: Tue Aug 26 11:24:50 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/1354bd15/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(