Commits

Sebastian Sdorra  committed 110b1e5

wait 1 second to fix last modified integration test

  • Participants
  • Parent commits 5d48ac0

Comments (0)

Files changed (1)

File scm-webapp/src/test/java/sonia/scm/it/HttpCacheITCaseBase.java

  */
 
 
+
 package sonia.scm.it;
 
 //~--- non-JDK imports --------------------------------------------------------
   /**
    * Method description
    *
+   *
+   * @throws InterruptedException
    */
   @Test
-  public void changingCollectionLastModifiedTest()
+  public void changingCollectionLastModifiedTest() throws InterruptedException
   {
     ClientResponse response = getCollectionResponse();
     long lastModified = getLastModified(response);
 
+    // wait 1 second because http date is not millisecond precision
+    Thread.sleep(1000l);
     item = createSampleItem();
     response = getCollectionResponse();