8143100: (sc) java/nio/channels/ServerSocketChannel/Basic.java fails intermittently
authoralanb
Fri, 15 Jan 2016 10:58:09 +0000
changeset 34965 38232541c49a
parent 34964 eb5a8165e2be
child 34966 03a7b2386cef
8143100: (sc) java/nio/channels/ServerSocketChannel/Basic.java fails intermittently Reviewed-by: alanb Contributed-by: huaming.li@oracle.com
jdk/test/java/nio/channels/ServerSocketChannel/Basic.java
--- a/jdk/test/java/nio/channels/ServerSocketChannel/Basic.java	Fri Jan 15 11:49:36 2016 +0300
+++ b/jdk/test/java/nio/channels/ServerSocketChannel/Basic.java	Fri Jan 15 10:58:09 2016 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,7 @@
  */
 
 /* @test
+ * @bug 4286936 8143100
  * @summary Unit test for server-socket channels
  * @library ..
  */
@@ -130,7 +131,7 @@
         Client client = new Client(port, block);
         server.start();
         client.start();
-        if ((server.finish(2000) & client.finish(100)) == 0)
+        if ((server.finish(0) & client.finish(0)) == 0)
             throw new Exception("Failure");
         log.println();
     }