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] Closed: (HARMONY-991) [classlib][nio] An unstable test in o.a.h.tests.java.nio.channels.DatagramChannelTest
Date Mon, 31 Jul 2006 01:52:16 GMT
     [ 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

        

Mime
View raw message