harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-991) [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
Date Fri, 28 Jul 2006 08:40:15 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-991?page=all ]

Paulex Yang resolved HARMONY-991.
---------------------------------

    Resolution: Fixed

Andrew, patch applied at revision r426436, thanks a lot for this enhancement, please verify
that the problem is fully fixed as you expected.


> [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

        

Mime
View raw message