Skip to content

Commit

Permalink
addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysGonchar committed Nov 14, 2023
1 parent c0a840f commit 42a2d30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions big_tests/tests/cets_disco_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ disco_get_nodes(Node, State) ->
NewState.

log_disco_request(disco_init, Node, #{cluster_name := CN} = Opts, State) ->
ct:pal("[0] disco_init(~p,~n" ++
ct:log("[0] disco_init(~p,~n" ++
" ~p) =~n" ++
" ~p",
[Node, Opts, State]),
Expand All @@ -188,7 +188,7 @@ log_disco_request(disco_get_nodes, Node, #{cluster_name := CN} = OldState, NewSt
undefined -> 1;
Int when is_integer(Int) -> Int
end,
ct:pal("[~p] disco_get_nodes(~p,~n" ++
ct:log("[~p] disco_get_nodes(~p,~n" ++
" ~p) =~n" ++
" ~p",
[N, Node, OldState, NewState]),
Expand Down Expand Up @@ -218,20 +218,20 @@ random_cluster_name(CaseName) ->

insert_new(CN, BinNode, TS, NodeNum) ->
Ret = rpc(mim(), mongoose_cets_discovery_rdbms, insert_new, [CN, BinNode, TS, NodeNum]),
ct:pal("insert_new(~p, ~p, ~p, ~p) = ~p", [CN, BinNode, TS, NodeNum, Ret]),
ct:log("insert_new(~p, ~p, ~p, ~p) = ~p", [CN, BinNode, TS, NodeNum, Ret]),
Ret.

select(CN) ->
Ret = rpc(mim(), mongoose_cets_discovery_rdbms, select, [CN]),
ct:pal("select(~p) = ~p", [CN, Ret]),
ct:log("select(~p) = ~p", [CN, Ret]),
Ret.

update_existing(CN, BinNode, TS) ->
Ret = rpc(mim(), mongoose_cets_discovery_rdbms, update_existing, [CN, BinNode, TS]),
ct:pal("select(~p, ~p, ~p) = ~p", [CN, BinNode, TS, Ret]),
ct:log("select(~p, ~p, ~p) = ~p", [CN, BinNode, TS, Ret]),
Ret.

delete_node_from_db(CN, BinNode) ->
Ret = rpc(mim(), mongoose_cets_discovery_rdbms, delete_node_from_db, [CN, BinNode]),
ct:pal("delete_node_from_db(~p, ~p) = ~p", [CN, BinNode, Ret]),
ct:log("delete_node_from_db(~p, ~p) = ~p", [CN, BinNode, Ret]),
Ret.

0 comments on commit 42a2d30

Please sign in to comment.