changeset 13465:da62d3583cb7

8143100: (sc) java/nio/channels/ServerSocketChannel/Basic.java fails intermittently Reviewed-by: alanb Contributed-by: huaming.li@oracle.com
author alanb
date Fri, 15 Jan 2016 10:58:09 +0000
parents 5f3452a61c4d
children 0e1d9cff1e39
files test/java/nio/channels/ServerSocketChannel/Basic.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/channels/ServerSocketChannel/Basic.java	Fri Jan 15 11:49:36 2016 +0300
+++ b/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();
     }