From 0c721e3eab86c786f5c6de2a561f8bc468328ca6 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Tue, 08 Jul 2014 16:03:55 +0000
Subject: [PATCH] Improve unit-tests to easy troubleshooting.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
index 04f6975..38ec231 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
@@ -81,12 +81,12 @@
   private static final String REPLICATION_GENERATION_ID = "ds-sync-generation-id";
 
   private static final int WINDOW_SIZE = 10;
-  private static final int server1ID = 1;
-  private static final int server2ID = 2;
-  private static final int server3ID = 3;
-  private static final int replServerId1 = 11;
-  private static final int replServerId2 = 12;
-  private static final int replServerId3 = 13;
+  private static final int server1ID = 901;
+  private static final int server2ID = 902;
+  private static final int server3ID = 903;
+  private static final int replServerId1 = 911;
+  private static final int replServerId2 = 912;
+  private static final int replServerId3 = 913;
 
   private DN baseDN;
   private ReplicationBroker broker2;
@@ -450,7 +450,7 @@
 
   private int getRSPort(int replServerId) throws Exception
   {
-    return replServerPort[replServerId - 11];
+    return replServerPort[replServerId - replServerId1];
   }
 
   private long readGenIdFromSuffixRootEntry() throws Exception
@@ -1139,6 +1139,7 @@
     {
       stop(broker);
       postTest();
+      debugInfo("Successfully ending " + testCase);
     }
   }
 

--
Gitblit v1.10.0