iilyak commented on code in PR #5491: URL: https://github.com/apache/couchdb/pull/5491#discussion_r2064124022
########## src/couch_stats/test/eunit/csrt_logger_tests.erl: ########## @@ -0,0 +1,368 @@ +% Licensed under the Apache License, Version 2.0 (the "License"); you may not +% use this file except in compliance with the License. You may obtain a copy of +% the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +% License for the specific language governing permissions and limitations under +% the License. + +-module(csrt_logger_tests). + +-include_lib("couch/include/couch_db.hrl"). +-include_lib("couch/include/couch_eunit.hrl"). +-include_lib("couch_mrview/include/couch_mrview.hrl"). + +-define(RCTX_RANGE, 1000). +-define(RCTX_COUNT, 10000). + +%% Dirty hack for hidden records as .hrl is only in src/ Review Comment: ```diff diff --git i/src/couch_stats/test/eunit/csrt_logger_tests.erl w/src/couch_stats/test/eunit/csrt_logger_tests.erl index dca8c40e8..44d446cd2 100644 --- i/src/couch_stats/test/eunit/csrt_logger_tests.erl +++ w/src/couch_stats/test/eunit/csrt_logger_tests.erl @@ -15,13 +15,14 @@ -include_lib("couch/include/couch_db.hrl"). -include_lib("couch/include/couch_eunit.hrl"). -include_lib("couch_mrview/include/couch_mrview.hrl"). +-include("../../src/couch_stats_resource_tracker.hrl"). -define(RCTX_RANGE, 1000). -define(RCTX_COUNT, 10000). %% Dirty hack for hidden records as .hrl is only in src/ --define(RCTX_RPC, {rpc_worker, foo, bar, {self(), make_ref()}}). --define(RCTX_COORDINATOR, {coordinator, foo, bar, 'GET', "/foo/_all_docs"}). +-define(RCTX_RPC, #rpc_worker{from = {self(), make_ref()}}). +-define(RCTX_COORDINATOR, #coordinator{method = 'GET', path = "/foo/_all_docs"}). -define(THRESHOLD_DBNAME, <<"foo">>). -define(THRESHOLD_DBNAME_IO, 91). ``` You can import `hrl` from `src` using relative import. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org