Mochiweb EUnit test fails on FreeBSD again

36 views
Skip to first unread message

kenji.r...@acm.org

unread,
Jan 3, 2014, 4:11:28 AM1/3/14
to moch...@googlegroups.com, b...@redevi.com
FreeBSD testing timeout again detected on the latest Mochiweb:
a pull request sent for fix.
https://github.com/mochi/mochiweb/pull/121

Regards,
Kenji Rikitake

Update test/mochiweb_tests.erl

* With Erlang R16B03 running on FreeBSD/amd64 10.0-PRERELEASE
(base/stable/10 r260159),
the following tests will not finish
within the default eunit timeout of 5 seconds
(See `lib/eunit/src/eunit_internal.hrl` (of R16B03))
so cases modified to extend timeout to 60 seconds (`LARGE_TIMEOUT`):

% note well the underscore at the end of function names
single_100k_http_POST_test_()
single_100k_https_POST_test_()
multiple_100k_http_POST_test_()
multiple_100k_https_POST_test_()

See also <https://github.com/mochi/mochiweb/commit/02066a511adcad08bb05d7a4a36ca1fc9ca08805>

++> Kenji Rikitake <kenji.r...@acm.org> [2011-02-12 17:27:33 -0800]:
> Date: Sat, 12 Feb 2011 17:27:33 -0800 (PST)
> From: Kenji Rikitake <kenji.r...@acm.org>
> To: MochiWeb <moch...@googlegroups.com>
> Subject: [mochiweb] Re: mochiweb EUnit test crashes on FreeBSD
> Reply-To: moch...@googlegroups.com
>
> Test changed to add another explicit timeout value, and it worked.
> (Approx 10 seconds required for the failed HTTP(S) tests)
>
> git fetch git://github.com/jj1bdx/mochiweb.git eunit-slow-httptests
>
> Kenji Rikitake
>
> On Feb 13, 2:11 am, Bob Ippolito <b...@redivi.com> wrote:
> > We don't currently test on FreeBSD so I can't give you any really good
> > advice here. It might be just that your testing machine runs too
> > slowly to complete this test with eunit's default timeout. You might
> > want to try raising that timeout by using a different eunit macro to
> > run it with a custom timeout. See the EUnit test representation docs
> > in the user guide.
>
> --
> You received this message because you are subscribed to the Google Groups "MochiWeb" group.
> To post to this group, send email to moch...@googlegroups.com.
> To unsubscribe from this group, send email to mochiweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mochiweb?hl=en.
Reply all
Reply to author
Forward
0 new messages