[
https://issues.apache.org/jira/browse/JAMES-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640795#action_12640795
]
Bernd Fondermann commented on JAMES-878:
----------------------------------------
I'd suspect that readAnswer() is still the problem here. At some places we
added a delay by 1 sec. to get the proper whole answer read but this is not
done everywhere (and artificially extends the running time of the test).
I'd propose to replace readAnswer() with checkAnswer(expectedAnswer), which
reads answers until the expected answer is completely delivered or an
unexpected answer is read. If the expected answer is not or only partially read
after, for example, 4 seconds, the test fails.
This has the advantage of being as fast as the test environment.
> Seemingly random unit test failures for RemoteManager under Windows Vista
> (easy to reproduce)
> ---------------------------------------------------------------------------------------------
>
> Key: JAMES-878
> URL: https://issues.apache.org/jira/browse/JAMES-878
> Project: JAMES Server
> Issue Type: Bug
> Components: Remote Manager
> Affects Versions: 2.3.1
> Environment: Windows Vista 32-bit (Home Premium)
> JDK 1.5.0_16
> JUnit 3.8.2
> Reporter: rukwka
>
> The number of failed RemoteManager unit tests seems to vary widely and
> randomly, sometimes many fail; at other times, much less. Examining some of
> the failures (in the unit test report files), they all seem to be at points
> where the output (such as a "Welcome" line) from the remote manager is
> compared to the expected one by the test case.
> At first thought that it might be an issue with the default restricted Vista
> user not being able to open certain port numbers, but it the same occurs when
> "build.bat clean run-unit-tests" is run from a command prompt with admin
> privileges.
> Easy to reproduce, ran multiple times and failures were always > 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]