You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/07/31 03:52:16 UTC

[jira] Closed: (HARMONY-991) [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest

     [ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]

Paulex Yang closed HARMONY-991.
-------------------------------


Verified by Andrew.

> [classlib][nio] An unstable test  in o.a.h.tests.java.nio.channels.DatagramChannelTest
> --------------------------------------------------------------------------------------
>
>                 Key: HARMONY-991
>                 URL: http://issues.apache.org/jira/browse/HARMONY-991
>             Project: Harmony
>          Issue Type: Test
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Paulex Yang
>         Attachments: nio.diff
>
>
> Test testReceiveSend_NonBlock_Empty_S2C() in DatagramChannelTest is unstable. 
> Consider:
> public void testReceiveSend_NonBlock_Empty_S2C() throws Exception {
>         this.channel1.configureBlocking(false);
>         this.channel2.configureBlocking(false);
>         this.channel1.socket().bind(localAddr2);
>         sendByDatagramSocket("", localAddr2);
>         // It may fail here sometimes
>         receiveByChannel(CAPACITY_NORMAL, localAddr2, "");
>     }
> receiveByChannel() could not guarantee that data can always be receieved from a non-blocking channel. The test fails on my machine sometimes, though infrequently.
> I'll upload a patch to fix this problem.
> Thanks!
> Best regards,
> Andrew

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira