SslHandlerTest#testCompositeBufSizeEstimationGuaranteesSynchronousWrite print SslProvider on failure
Motivation: When SslHandlerTest#testCompositeBufSizeEstimationGuaranteesSynchronousWrite fails it would be useful to know the SslProvider type Modifications: - Print the sever and client SslProvider upon failure - Increase test timeout to 8 minutes to allow more time to run Result: Failures include more info to help diagnose issues.
This commit is contained in:
parent
566566db3a
commit
cbce95eae1
@ -653,7 +653,7 @@ public class SslHandlerTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 300000)
|
@Test(timeout = 480000)
|
||||||
public void testCompositeBufSizeEstimationGuaranteesSynchronousWrite()
|
public void testCompositeBufSizeEstimationGuaranteesSynchronousWrite()
|
||||||
throws CertificateException, SSLException, ExecutionException, InterruptedException {
|
throws CertificateException, SSLException, ExecutionException, InterruptedException {
|
||||||
SslProvider[] providers = SslProvider.values();
|
SslProvider[] providers = SslProvider.values();
|
||||||
@ -663,22 +663,27 @@ public class SslHandlerTest {
|
|||||||
for (int j = 0; j < providers.length; ++j) {
|
for (int j = 0; j < providers.length; ++j) {
|
||||||
SslProvider clientProvider = providers[j];
|
SslProvider clientProvider = providers[j];
|
||||||
if (isSupported(clientProvider)) {
|
if (isSupported(clientProvider)) {
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
try {
|
||||||
true, true, true);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
true, true, true);
|
||||||
true, true, false);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
true, true, false);
|
||||||
true, false, true);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
true, false, true);
|
||||||
true, false, false);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
true, false, false);
|
||||||
false, true, true);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
false, true, true);
|
||||||
false, true, false);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
false, true, false);
|
||||||
false, false, true);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
false, false, true);
|
||||||
false, false, false);
|
compositeBufSizeEstimationGuaranteesSynchronousWrite(serverProvider, clientProvider,
|
||||||
|
false, false, false);
|
||||||
|
} catch (Throwable cause) {
|
||||||
|
throw new RuntimeException("serverProvider: " + serverProvider + " clientProvider: " +
|
||||||
|
clientProvider, cause);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user