From 0c90723e7e17d27ad675b3d6908a014d88d60885 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Thu, 19 Sep 2019 17:08:56 +0800 Subject: [PATCH] fixed test failed --- test/prop_ecron_application.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/prop_ecron_application.erl b/test/prop_ecron_application.erl index 5a3a267..194b4a3 100644 --- a/test/prop_ecron_application.erl +++ b/test/prop_ecron_application.erl @@ -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 @@ -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])),