Merge pull request #7678 from thalesmg/fix-flaky-prop-and-test
Fix flaky tests and properties
This commit is contained in:
commit
097b38e418
|
@ -124,7 +124,7 @@ do_teardown(_) ->
|
||||||
ok = application:stop(gen_rpc),
|
ok = application:stop(gen_rpc),
|
||||||
ok = meck:unload(gen_rpc),
|
ok = meck:unload(gen_rpc),
|
||||||
%% wait for tcp close
|
%% wait for tcp close
|
||||||
timer:sleep(1500).
|
timer:sleep(2500).
|
||||||
|
|
||||||
ensure_distributed_nodename() ->
|
ensure_distributed_nodename() ->
|
||||||
case net_kernel:start([?NODENAME]) of
|
case net_kernel:start([?NODENAME]) of
|
||||||
|
|
|
@ -662,7 +662,12 @@ host() ->
|
||||||
Host.
|
Host.
|
||||||
|
|
||||||
ebin_path() ->
|
ebin_path() ->
|
||||||
string:join(["-pa" | lists:filter(fun is_lib/1, code:get_path())], " ").
|
string:join(["-pa" | paths()], " ").
|
||||||
|
|
||||||
is_lib(Path) ->
|
paths() ->
|
||||||
string:prefix(Path, code:lib_dir()) =:= nomatch.
|
[
|
||||||
|
Path
|
||||||
|
|| Path <- code:get_path(),
|
||||||
|
string:prefix(Path, code:lib_dir()) =:= nomatch,
|
||||||
|
string:str(Path, "_build/default/plugins") =:= 0
|
||||||
|
].
|
||||||
|
|
|
@ -56,6 +56,7 @@ init_per_suite(Config) ->
|
||||||
|
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
emqx_common_test_helpers:stop_apps([emqx_conf, emqx_dashboard, emqx_modules]),
|
emqx_common_test_helpers:stop_apps([emqx_conf, emqx_dashboard, emqx_modules]),
|
||||||
|
application:stop(gen_rpc),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
set_special_configs(emqx_dashboard) ->
|
set_special_configs(emqx_dashboard) ->
|
||||||
|
|
Loading…
Reference in New Issue