test(proper): fix cant_generate error

This commit is contained in:
JianBo He 2021-04-19 14:22:27 +08:00 committed by Zaiming (Stone) Shi
parent daa3d70ec3
commit 1f258a0499
1 changed files with 3 additions and 3 deletions

View File

@ -91,11 +91,11 @@ do_setup() ->
ensure_distributed_nodename(),
ok = logger:set_primary_config(#{level => warning}),
{ok, _Apps} = application:ensure_all_started(gen_rpc),
ok = application:set_env(gen_rpc, call_receive_timeout, 1),
ok = application:set_env(gen_rpc, call_receive_timeout, 100),
ok = meck:new(gen_rpc, [passthrough, no_history]),
ok = meck:expect(gen_rpc, multicall,
fun(Nodes, Mod, Fun, Args) ->
gen_rpc:multicall(Nodes, Mod, Fun, Args, 1)
gen_rpc:multicall(Nodes, Mod, Fun, Args, 100)
end).
do_teardown(_) ->
@ -150,7 +150,7 @@ node_prefix() ->
oneof(["emqxct", text_like()]).
text_like() ->
?SUCHTHAT(Text, list(range($a, $z)), (length(Text) =< 5 andalso length(Text) > 0)).
?SUCHTHAT(Text, list(range($a, $z)), (length(Text) =< 100 andalso length(Text) > 0)).
hostname() ->
oneof(["127.0.0.1", "localhost"]).