[MAGNOLIA-1934] Review and fix mail tests. Created: 06/Dec/07  Updated: 13/Oct/12  Resolved: 13/Oct/12

Status: Closed
Project: Magnolia
Component/s: mail
Affects Version/s: 3.5 RC2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Jan Haderka Assignee: Jan Haderka
Resolution: Outdated Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
supersedes MAGNOLIA-983 magnolia-module-mail: Tests are broke... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Mail related tests do intermittently fail, which makes release process very troublesome. Exclude them until 3.5 final and fix them after.



 Comments   
Comment by Magnolia International [ 27/Jun/08 ]

after upgrading to subethamail 1.2, i can't seem to get these tests failing again. Please reopen if it happens again.

Comment by Jan Haderka [ 02/Jul/08 ]

Tests still fail intermittently on linux with

Caused by: java.net.BindException: Address already in use

After changing AbstractMailTestCase.setUp() to add 1sec timeout (sleep) before starting server again the tests were not failing anymore.

assertFalse(wiser.getServer().isRunning());
Thread.currentThread().sleep(1000);
wiser.start();
Generated at Mon Feb 12 03:31:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.