Skip to content

Commit bb0aac1

Browse files
authored
FIX Replication IT tests unstable result (#514)
1 parent e417cd1 commit bb0aac1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

opendj-server-legacy/src/test/java/org/opends/server/replication/GenerationIdTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Copyright 2006-2010 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16-
* Portions Copyright 2023-2024 3A Systems, LLC.
16+
* Portions Copyright 2023-2025 3A Systems, LLC.
1717
*/
1818
package org.opends.server.replication;
1919

@@ -334,7 +334,7 @@ private ReplicationServer createReplicationServer(int replServerId,
334334
String rsDir = "generationIdTest" + replServerId + testCase + "Db";
335335
ReplicationServer replicationServer = new ReplicationServer(
336336
new ReplServerFakeConfiguration(rsPort, rsDir, 0, replServerId, 0, 1000, servers));
337-
Thread.sleep(2000);
337+
Thread.sleep(3000);
338338
return replicationServer;
339339
}
340340

opendj-server-legacy/src/test/java/org/opends/server/replication/service/ReplicationDomainTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ public void exportAndImport(int serverId1, int serverId2) throws Exception
369369

370370
private boolean initializeFromRemote(ReplicationDomain domain) throws DirectoryException
371371
{
372+
try {
373+
Thread.sleep(2000);
374+
} catch (InterruptedException e) {
375+
throw new RuntimeException(e);
376+
}
372377
for (DSInfo remoteDS : domain.getReplicaInfos().values())
373378
{
374379
if (remoteDS.getDsId() != domain.getServerId())

0 commit comments

Comments
 (0)