couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject chttpd commit: updated refs/heads/master to 02d0b41
Date Tue, 25 Aug 2015 09:01:47 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master ee7785b33 -> 02d0b414a


There is no binary_to_integer/1 in R14


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

Branch: refs/heads/master
Commit: 02d0b414a4559a44fb4d503f301f2ff2705b4579
Parents: ee7785b
Author: Alexander Shorin <kxepal@apache.org>
Authored: Tue Aug 25 11:47:45 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Tue Aug 25 11:47:45 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/02d0b414/test/chttpd_db_test.erl
----------------------------------------------------------------------
diff --git a/test/chttpd_db_test.erl b/test/chttpd_db_test.erl
index 95bbd93..5bcb78d 100644
--- a/test/chttpd_db_test.erl
+++ b/test/chttpd_db_test.erl
@@ -78,14 +78,14 @@ should_accept_live_as_an_alias_for_continuous(Url) ->
         {ResultJson} = ?JSON_DECODE(ResultBody),
         <<LastSeqNum0:1/binary, "-", _/binary>> = couch_util:get_value(
             <<"last_seq">>, ResultJson, undefined),
-        LastSeqNum = binary_to_integer(LastSeqNum0),
+        LastSeqNum = list_to_integer(binary_to_list(LastSeqNum0)),
 
         {ok, _, _, _} = create_doc(Url, "testdoc2"),
         {ok, _, _, ResultBody2} = test_request:get(Url ++ "/_changes?feed=live&timeout=1"),
         [_, CleanedResult] = binary:split(ResultBody2, <<"\n">>),
         {[{_, Seq}, _]} = ?JSON_DECODE(CleanedResult),
         <<SeqNum0:1/binary, "-", _/binary>> = Seq,
-        SeqNum = binary_to_integer(SeqNum0),
+        SeqNum = list_to_integer(binary_to_list(SeqNum0)),
 
         ?assertEqual(LastSeqNum + 1, SeqNum)
     end).


Mime
View raw message