Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 26611 invoked from network); 26 Jun 2006 03:35:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 03:35:03 -0000 Received: (qmail 36903 invoked by uid 500); 26 Jun 2006 03:35:02 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 36862 invoked by uid 500); 26 Jun 2006 03:35:02 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 36851 invoked by uid 99); 26 Jun 2006 03:35:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 20:35:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 20:35:01 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C05267141F2 for ; Mon, 26 Jun 2006 03:33:29 +0000 (GMT) Message-ID: <7810682.1151292809763.JavaMail.jira@brutus> Date: Mon, 26 Jun 2006 03:33:29 +0000 (GMT+00:00) From: "Andrew Zhang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-658) Remove an unstable test from DatagramChannelTest.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Remove an unstable test from DatagramChannelTest.java ----------------------------------------------------- Key: HARMONY-658 URL: http://issues.apache.org/jira/browse/HARMONY-658 Project: Harmony Type: Test Components: Classlib Reporter: Andrew Zhang Hello, Consider following test from DatagramChannelTest.java, which is potentially unstable. The test can not guarantee that channel1.receive always executes before channel1.close. Therefore, the test may fail sometimes. private void closeBlockedChannelForReceive(ByteBuffer dst) throws IOException { // TODO refine async close test when AbstractInterruptibleChannel // complete // to break the blocking status, let a thread to close this channel. new Thread() { public void run() { try { // Can not guarantee that channel1.receive always executes before channel1.close. // Therefore, the test may fail. Thread.sleep(TIME_UNIT); channel1.close(); } catch (Exception e) { e.printStackTrace(); } } }.start(); try { this.channel1.receive(dst); fail("Should throw a AsynchronousCloseException"); } catch (AsynchronousCloseException e) { //expected } } I'll remove the test from DatagramChannelTest.java. 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