http://jira.magnolia-cms.com/browse/MAGNOLIA-1934
On Oct 28, 2008, at 10:36 PM, McMains, Sean A wrote:
I've finally gotten our code merged and working with Magnolia 3.6.3.
It
builds just fine on my OS X box. When I check it in to our continuous
integration box, however, the tests for magnolia-module-mail fail:
----------------------------------------------------------------------------
--
Test set: info.magnolia.cms.mail.HtmlMailTest
----------------------------------------------------------------------------
---
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.282 sec
<<< FAILURE!
testHtmlMailWithPdf(info.magnolia.cms.mail.HtmlMailTest) Time
elapsed:
0.005 sec <<< ERROR!
java.lang.RuntimeException: java.net.BindException: Address already
in use
at
org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:198)
at org.subethamail.wiser.Wiser.start(Wiser.java:88)
at
info.magnolia.cms.mail.AbstractMailTest.setUp(AbstractMailTest.java:
86)
....etc.
----
This appears to be because linux isn't releasing port 25025, on
which the
test suite fires up an SMTP server for testing, promptly on the
previous
runs. "netstat -aptun | grep 25025" shows this after maven has
failed the
build and quit:
tcp6 0 0 ::ffff:127.0.0.1:57376 ::ffff:127.0.0.1:25025
TIME_WAIT -
tcp6 0 0 ::ffff:127.0.0.1:57377 ::ffff:127.0.0.1:25025
TIME_WAIT -
tcp6 0 0 ::ffff:127.0.0.1:25025 ::ffff:127.0.0.1:57375
TIME_WAIT -
tcp6 0 0 ::ffff:127.0.0.1:25025 ::ffff:127.0.0.1:57374
TIME_WAIT -
You can see there's no longer a process attached, but it still takes
about
10 seconds after maven quits for the port to clear anyway.
Our kernel is:
Linux gato-builder 2.6.16.29-xen #1 SMP Sat Dec 30 04:02:27 CST 2006
i686
GNU/Linux
Has anyone bumped into something similar? If so, have you found a
good fix?
I can certainly turn off these tests, but that seems a rather
horrible way
to address the issue.
Thanks in advance for any insight!
Sean
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------