diff --git a/management/src/test/java/org/kaazing/gateway/management/jmx/JmxSessionPrincipalsIT.java b/management/src/test/java/org/kaazing/gateway/management/jmx/JmxSessionPrincipalsIT.java
index <HASH>..<HASH> 100644
--- a/management/src/test/java/org/kaazing/gateway/management/jmx/JmxSessionPrincipalsIT.java
+++ b/management/src/test/java/org/kaazing/gateway/management/jmx/JmxSessionPrincipalsIT.java
@@ -297,7 +297,7 @@ public class JmxSessionPrincipalsIT {
 
         startTime = currentTimeMillis();
         numberOfCurrentSessions = (Long) mbeanServerConn.getAttribute(echoServiceMbeanName, "NumberOfCurrentSessions");
-        while (numberOfCurrentSessions > 1 && (currentTimeMillis() - startTime) < 10000) {
+        while (numberOfCurrentSessions > 0 && (currentTimeMillis() - startTime) < 10000) {
             Thread.sleep(500);
             numberOfCurrentSessions = (Long) mbeanServerConn.getAttribute(echoServiceMbeanName, "NumberOfCurrentSessions");
         }
(management) Fixed a trivial error in JmxSessionPrincipalsIT which was causing occasional test failures (in that test or subclass JmxSessionPrincipalsSupertypeIT)