From 9df0c0351216575123c607a39c5c7ec453bae64b Mon Sep 17 00:00:00 2001
From: maximthomas <maxim.thomas@gmail.com>
Date: Tue, 29 Apr 2025 07:55:53 +0000
Subject: [PATCH] Merge branch 'master' into update-jdk-11

---
 opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java
index 11dfa45..50a6728 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java
@@ -13,6 +13,7 @@
  *
  * Copyright 2008-2010 Sun Microsystems, Inc.
  * Portions Copyright 2011-2016 ForgeRock AS.
+ * Portions Copyright 2025 3A Systems,LLC.
  */
 package org.opends.server.replication.service;
 
@@ -368,6 +369,11 @@
 
   private boolean initializeFromRemote(ReplicationDomain domain) throws DirectoryException
   {
+    try {
+      Thread.sleep(2000);
+    } catch (InterruptedException e) {
+      throw new RuntimeException(e);
+    }
     for (DSInfo remoteDS : domain.getReplicaInfos().values())
     {
       if (remoteDS.getDsId() != domain.getServerId())
@@ -442,7 +448,7 @@
   private void waitEndExport(String exportedData, StringBuilder importedData) throws Exception
   {
     int count = 0;
-    while (importedData.length() < exportedData.length() && count < 500)
+    while (importedData.length() < exportedData.length() && count < 500*5)
     {
       count ++;
       Thread.sleep(100);

--
Gitblit v1.10.0