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

matthew_swift
20.47.2008 d3dcf461ec922370de1db3f923b53d26018e71e6
Tests were pausing the wrong thread: change TimerThread.sleep() to Thread.sleep().
3 files modified
8 ■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java 2 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 2 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 4 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java
@@ -144,7 +144,7 @@
        openReplicationSession(baseDn, brokerId, 1000, replServerPort, 1000,
                               false);
      TimeThread.sleep(2000);
      Thread.sleep(2000);
      // send a sequence of add operation
      String addDn = BASEDN_STRING;
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
@@ -472,7 +472,7 @@
    do
    {
      if (count++>0)
        TimeThread.sleep(100);
        Thread.sleep(100);
      op = connection.processSearch(
                                    ByteStringFactory.create("cn=monitor"),
                                    SearchScope.SINGLE_LEVEL,
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2008 Sun Microsystems, Inc.
 */
package org.opends.server.replication;
@@ -699,7 +699,7 @@
    broker.publish(modMsg);
    // check that the modify has not been applied
    TimeThread.sleep(2000);
    Thread.sleep(2000);
    found = checkEntryHasAttribute(personWithUUIDEntry.getDN(),
                           "telephonenumber", "02 01 03 05", 10000, false);
    if (found == true)