[erlang-bugs] eunit timeout doesn't work properly

systemio systemio systemio@REDACTED
Wed Feb 1 17:58:33 CET 2012


here is the code in the module
smoke_test_() ->
S = fun() -> ok end,
C = fun(_) -> ok end,
F = fun(_) -> fun() -> timer:sleep(6000) end end,
{timeout,100,[{setup,S,C,F}]}.

and i start it via erlang shell: eunit:test([{inparallel,smoke}],[{report,{eunit_surefire,[{dir,"./Reports"}]}}]).

it breaks after 5 seconds, in spite of i gave it a 100 seconds timeout.


01 февраля 2012, 20:29 от Roberto Aloi <roberto.aloi@REDACTED>:
> Hi,
> 
> 5 seconds sounds like the typical default timeout for a gen_server.
> Are you sure it's the eunit test itself which is timing out and not some other part of the system?
> 
> Could you please share some code?
> 
> Roberto Aloi
> ---
> Erlang Solutions Ltd.
> www.erlang-solutions.com
> 
> ----- Original Message -----
> > My function works about 7 seconds.
> > i test my function via {timeout,100,[{setup,S,C,F}]} and always get
> > timeout after 5 seconds.
> > BUT if i test my function via {timeout,1,[{setup,S,C,F}]} i will get
> > timeout after a second.
> > _______________________________________________
> > erlang-bugs mailing list
> > erlang-bugs@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-bugs
> >
> 


More information about the erlang-bugs mailing list