From a46e0545eadaca058e3d3a09dd88f187c9dfdcff Mon Sep 17 00:00:00 2001 From: Xue-Lei Andrew Fan Date: Thu, 19 Dec 2013 22:59:21 -0800 Subject: [PATCH] 8030842: Intermittent test failure SSLSocketTimeoutNulls.java Reviewed-by: weijun --- .../ssl/InputRecord/SSLSocketTimeoutNulls.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/SSLSocketTimeoutNulls.java b/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/SSLSocketTimeoutNulls.java index 70344cde866..4a72a1ecf1e 100644 --- a/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/SSLSocketTimeoutNulls.java +++ b/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/SSLSocketTimeoutNulls.java @@ -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