8030842: Intermittent test failure SSLSocketTimeoutNulls.java

Reviewed-by: weijun
This commit is contained in:
Xue-Lei Andrew Fan 2013-12-19 22:59:21 -08:00
parent 167190a3d0
commit a46e0545ea

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2013, 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
@ -21,6 +21,11 @@
* questions.
*/
//
// SunJSSE does not support dynamic system properties, no way to re-use
// system properties in samevm/agentvm mode.
//
/*
* @test
* @bug 4456039
@ -28,9 +33,6 @@
* after timeout occurs. This bug was fixed as part of 4393337,
* but this is another bug we want to check regressions against.
* @run main/othervm/timeout=140 SSLSocketTimeoutNulls
*
* SunJSSE does not support dynamic system properties, no way to re-use
* system properties in samevm/agentvm mode.
* @author Brad Wetmore
*/
@ -152,7 +154,7 @@ public class SSLSocketTimeoutNulls {
caught = true;
// Try to read it again after it should be available.
Thread.sleep(5000);
Thread.sleep(6500);
if (sslIS.read() == 85)
System.out.println("Read the right value");
else