From 7302736c0007f2851e1b8bce3101e18ec884090f Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 08 Nov 2007 15:45:34 +0000
Subject: [PATCH] Fix for 2577 : replication generationID is not correctly saved in schema backend files and is not returned when searching.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
index ca6a5a5..b10dd33 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
@@ -1453,8 +1453,27 @@
protected void afterTest()
{
+ // Check that the domain hsa completed the import/export task.
if (replDomain != null)
{
+ // race condition could cause the main thread to reach
+ // this code before the task is fully completed.
+ // in those cases, loop for a while waiting for completion.
+ for (int i = 0; i< 10; i++)
+ {
+ if (replDomain.ieRunning())
+ {
+ try
+ {
+ Thread.sleep(500);
+ } catch (InterruptedException e)
+ { }
+ }
+ else
+ {
+ break;
+ }
+ }
assertTrue(!replDomain.ieRunning(),
"ReplicationDomain: Import/Export is not expected to be running");
}
--
Gitblit v1.10.0