test(fix): use ebin path without plugins
Without the filtering that already exists in cth:ebin_path, the rebar3 plugins path may take priority over normal dependencies. Since we just updated hocon, and there seems to be an older hocon among the rebar3 plugins, it started to break the test because older hocon was getting loaded in the peer.
This commit is contained in:
parent
b3074144cc
commit
e80d43d14d
|
@ -78,6 +78,7 @@
|
||||||
start_epmd/0,
|
start_epmd/0,
|
||||||
start_peer/2,
|
start_peer/2,
|
||||||
stop_peer/1,
|
stop_peer/1,
|
||||||
|
ebin_path/0,
|
||||||
listener_port/2
|
listener_port/2
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
|
|
@ -1247,7 +1247,7 @@ recv_msgs(Count, Msgs) ->
|
||||||
start_peer(Name, Port) ->
|
start_peer(Name, Port) ->
|
||||||
{ok, Node} = emqx_cth_peer:start_link(
|
{ok, Node} = emqx_cth_peer:start_link(
|
||||||
Name,
|
Name,
|
||||||
ebin_path()
|
emqx_common_test_helpers:ebin_path()
|
||||||
),
|
),
|
||||||
pong = net_adm:ping(Node),
|
pong = net_adm:ping(Node),
|
||||||
setup_node(Node, Port),
|
setup_node(Node, Port),
|
||||||
|
@ -1261,9 +1261,6 @@ host() ->
|
||||||
[_, Host] = string:tokens(atom_to_list(node()), "@"),
|
[_, Host] = string:tokens(atom_to_list(node()), "@"),
|
||||||
Host.
|
Host.
|
||||||
|
|
||||||
ebin_path() ->
|
|
||||||
["-pa" | code:get_path()].
|
|
||||||
|
|
||||||
setup_node(Node, Port) ->
|
setup_node(Node, Port) ->
|
||||||
EnvHandler =
|
EnvHandler =
|
||||||
fun(_) ->
|
fun(_) ->
|
||||||
|
|
Loading…
Reference in New Issue