From 44f577424c76e320d1460cff6bc5cc81aa70a28f Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Wed, 17 Jan 2007 06:32:30 +0000
Subject: [PATCH] Fixed race conditions in operation test cases by having them be more robust to how they check that a response was sent

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
index b3b884c..5320654 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -722,4 +722,13 @@
 
     return f.getAbsolutePath();
   }
+
+  /** Convenience method so we don't have to catch InterruptedException everywhere. */
+  public static void sleep(long ms) {
+    try {
+      Thread.sleep(ms);
+    } catch (InterruptedException e) {
+      // Ignore it.
+    }
+  }
 }

--
Gitblit v1.10.0