iilyak commented on a change in pull request #1370: [5/5] Clustered Purge
Implementation
URL: https://github.com/apache/couchdb/pull/1370#discussion_r200630909
##########
File path: src/couch_pse_tests/src/cpse_util.erl
##########
@@ -183,16 +183,24 @@ uuid() ->
couch_uuids:random().
-assert_db_props(DbName, Props) when is_binary(DbName) ->
+assert_db_props(DbName, Props, Module, Line) when is_binary(DbName) ->
Review comment:
Another option is to define macro (somewhere) as:
```
-define(assert_db_props(DbName, Props),
cpse_util:assert_db_props(DbName, Props, ?MODULE, ?LINE)).
```
Then you don't need to pass additional arguments at all:
```
?assert_db_props(DbName, [
{doc_count, 1},
{doc_count, 1},
{del_doc_count, 0},
{del_doc_count, 0},
{update_seq, 2},
{update_seq, 2},
{purge_seq, 0},
{purge_seq, 0},
{purge_infos, []}
]).
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services