Skip to content

Commit

Permalink
fixed test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool committed Sep 19, 2019
1 parent 00f4376 commit 0c90723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/prop_ecron_application.erl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ prop_application() ->
).

prop_application_error_config(doc) -> "ecron application load error config failed";
prop_application_error_config(opts) -> [{numtests, 100}].
prop_application_error_config(opts) -> [{numtests, 800}].
prop_application_error_config() ->
?FORALL({Spec, UseTime}, {maybe_error_spec(), range(0, 3)},
begin
Expand All @@ -57,6 +57,7 @@ prop_application_error_config() ->
case application:start(ecron) of
{error, {"invaild_time: {{2019,12,10},unlimited}", _}} -> true;
{error, {"invaild_spec: test", _}} -> true;
{error, {{test, error_format}, _}} -> true;
{error, {Actual, _}} ->
{error, Field, Reason} = ecron:parse_spec(SpecStr),
Expect = lists:flatten(io_lib:format("~p: ~p", [Field, Reason])),
Expand Down

0 comments on commit 0c90723

Please sign in to comment.