[ 
https://issues.apache.org/jira/browse/COUCHDB-3360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051046#comment-16051046
 ] 

ASF subversion and git services commented on COUCHDB-3360:
----------------------------------------------------------

Commit f6321df8ad231451181845b7523ba791780dc747 in couchdb's branch 
refs/heads/jenkins-pipeline from [~jiangph]
[ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=f6321df ]

Fix broken eunit test in changes_since_test_ test suite

COUCHDB-3360/FB 85485


> Broken couch_mrview test modules
> --------------------------------
>
>                 Key: COUCHDB-3360
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3360
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Jay Doane
>
> These couch_mrview test modules are not getting run because the test 
> functions are missing a "_" at the end of their names:
> * 
> https://github.com/apache/couchdb-couch-mrview/blob/master/test/couch_mrview_index_changes_tests.erl#L28
> * 
> https://github.com/apache/couchdb-couch-mrview/blob/master/test/couch_mrview_changes_since_tests.erl#L32
> When the underscore is added, the tests run, but they are broken. For example:
> {code}
> module 'couch_mrview_index_changes_tests'
>   changes index tests
>     undefined
>     *** instantiation of subtests failed ***
> **in function couch_mrview_changes:handle_changes/6
>   called as 
> handle_changes({db,<0.397.0>,nil,<<"1491433628409649">>,<0.396.0>,#Ref<0.0.1.6810>,
>     {db_header,6,11,0,{8988,{...},...},{9467,...},nil,...},
>     11,
>     {btree,<0.396.0>,
>            {8988,{...},...},
>            #Fun<couch_db_updater.btree_by_id_split.1>,
>            #Fun<couch_db_updater.btree_by_id_join.2>,...},
>     {btree,<0.396.0>,
>            {9467,...},
>            #Fun<couch_db_updater.btree_by_seq_split.1>,...},
>     {btree,<0.396.0>,nil,...},
>     11,<<"euni"...>>,
>     
> [...],...},<<"_design/bar">>,<<"baz">>,#Fun<couch_mrview_index_changes_tests.23.21795614>,[],[])
> in call from couch_mrview_index_changes_tests:run_query/3 
> (test/couch_mrview_index_changes_tests.erl, line 224)
> in call from couch_mrview_index_changes_tests:test_normal_changes/1 
> (test/couch_mrview_index_changes_tests.erl, line 52)
> **error:undef
> {code}
> and
> {code}
> module 'couch_mrview_changes_since_tests'
>   changes_since tests
>     undefined
>     *** instantiation of subtests failed ***
> **in function couch_mrview_util:changes_expand_dups/2 
> (src/couch_mrview_util.erl, line 807)
>   called as 
> changes_expand_dups([{{2,1},{<<"1">>,1,{1,<<"\b�:W`�_�m��Ű\b�9">>}}}],[])
> in call from couch_mrview_util:'-fold_changes/4-fun-0-'/4 
> (src/couch_mrview_util.erl, line 374)
> in call from couch_btree:stream_kv_node2/8 (src/couch_btree.erl, line 784)
> in call from couch_btree:fold/4 (src/couch_btree.erl, line 220)
> in call from couch_mrview_util:fold_changes/4 (src/couch_mrview_util.erl, 
> line 376)
> in call from couch_mrview:'-view_changes_since/7-fun-0-'/4 
> (src/couch_mrview.erl, line 290)
> in call from lists:foldl/3 (lists.erl, line 1263)
> in call from couch_mrview:view_changes_since/7 (src/couch_mrview.erl, line 
> 289)
> **error:function_clause
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to