From fd7df34d47ef5fb9c93314c9a0e367db8a915a38 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 26 Jan 2016 10:06:31 +0100 Subject: [PATCH] Fix SSLEngineTest handshake method. Motivation: We used && in the handshake method of SSLEngineTest but it must be ||. Modifications: Changed && to || Result: Correctly check condition --- handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java b/handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java index d6459208ce..312a7579a7 100644 --- a/handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java +++ b/handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java @@ -397,7 +397,7 @@ public abstract class SSLEngineTest { runDelegatedTasks(serverResult, serverEngine); cTOs.compact(); sTOc.compact(); - } while (isHandshaking(clientResult) && isHandshaking(serverResult)); + } while (isHandshaking(clientResult) || isHandshaking(serverResult)); } private static boolean isHandshaking(SSLEngineResult result) {