Преглед изворни кода

test(proper): fix cant_generate error

JianBo He пре 4 година
родитељ
комит
1f258a0499
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      test/props/prop_emqx_rpc.erl

+ 3 - 3
test/props/prop_emqx_rpc.erl

@@ -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"]).