mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
26.37.2013 aa344d8f03325402586e7eacfdb95b038d35b84f
AssuredReplicationPluginTest.java:
Fixed ConcurrentModificationException.
Fixed wrong expected value (copy/paste was here).
1 files modified
7 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 7 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java
@@ -99,9 +99,10 @@
    public void assertRemainingValuesAreZero()
    {
      for (String attribute : attributeValues.keySet())
      Set<String> keySet;
      while (!(keySet = attributeValues.keySet()).isEmpty())
      {
        assertValue(attribute, 0L);
        assertValue(keySet.iterator().next(), 0L);
      }
    }
  }
@@ -1549,7 +1550,7 @@
        .assertValue("assured-sr-not-acknowledged-updates", 1)
        .assertValue("assured-sr-replay-error-updates", 1)
        .assertRemainingValuesAreZero();
      assertServerErrorsSafeReadMode(baseDN, entry(10, 2), entry(20, 1));
      assertServerErrorsSafeReadMode(baseDN, entry(10, 1), entry(20, 1));
      // Make a second LDAP update (delete the entry)
      startTime = System.currentTimeMillis(); // Time the update has been initiated