From 2b4666851a253af623e9542976b648f8de002886 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Sat, 25 Apr 2009 00:23:48 +0000
Subject: [PATCH] - increase timeout after enableJmx and assert that jmx connection handler is not null before returning.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
index 5aaf082..4f5752c 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
@@ -100,7 +100,7 @@
       enableJmx();
       synchronized (this)
       {
-        this.wait(500);
+        this.wait(1000);
       }
       for (ConnectionHandler handler : handlers)
       {
@@ -111,7 +111,7 @@
         }
       }
     }
-
+    assertNotNull(jmxConnectionHandler);
     return jmxConnectionHandler;
   }
 

--
Gitblit v1.10.0