From de3805aa321435976e0da5df2fb97974ad203ca1 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 25 Jun 2010 08:37:05 +0000
Subject: [PATCH] Fix unit test for ReplicationServerLoadBalancing which was incorrectly exiting with error in some edge cases

---
 opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java
index 41a2fc7..7cb1467 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java
@@ -65,9 +65,9 @@
   private static final int NDS = 20;
   // Number of RSs
   private static final int NRS = 4;
-  private LDAPReplicationDomain rd[] = new LDAPReplicationDomain[NDS];
-  private ReplicationServer rs[] = new ReplicationServer[NRS];
-  private int[] rsPort = new int[NRS];
+  private final LDAPReplicationDomain rd[] = new LDAPReplicationDomain[NDS];
+  private final ReplicationServer rs[] = new ReplicationServer[NRS];
+  private final int[] rsPort = new int[NRS];
 
   private static final int RS1_ID = 501;
   private static final int RS2_ID = 502;
@@ -892,6 +892,7 @@
         new int[] {3, 8, -1, 9},
         new int[] {4, 6, -1, 10},
         new int[] {4, 7, -1, 9},
+        new int[] {4, 8, -1, 8},
         new int[] {5, 6, -1, 9}},
         "Stopped RS3");
 

--
Gitblit v1.10.0