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

Jean-Noel Rouvignac
16.57.2015 a41662c1136b2bb4a4198df89e0e87d2be3ef099
opendj-server-legacy/src/test/java/org/opends/server/backends/task/TaskBackendTestCase.java
@@ -161,7 +161,7 @@
    while (TaskState.isPending(task.getTaskState()))
    {
      Thread.sleep(10);
      if (System.currentTimeMillis() > (startTime + 300000L))
      if (System.currentTimeMillis() > startTime + 300000L)
      {
        throw new AssertionError("Waited too long for the task to start");
      }
@@ -308,7 +308,7 @@
    while (TaskState.isPending(task.getTaskState()))
    {
      Thread.sleep(10);
      if (System.currentTimeMillis() > (startTime + 300000L))
      if (System.currentTimeMillis() > startTime + 300000L)
      {
        throw new AssertionError("Waited too long for the task to start");
      }
@@ -338,7 +338,7 @@
    // We may have to wait for the task to register as done, but it should
    // definitely be done before it would have stopped normally.
    task = TasksTestCase.getCompletedTask(DN.valueOf(taskDN));
    assertTrue((System.currentTimeMillis() - startTime) < 300000L);
    assertTrue(System.currentTimeMillis() - startTime < 300000L);
    assertTrue(TaskState.isDone(task.getTaskState()));