wait 1 second to fix last modified integration test

This commit is contained in:
Sebastian Sdorra
2012-12-14 20:55:18 +01:00
parent fac2645a66
commit 39576b9e56

View File

@@ -30,6 +30,7 @@
*/
package sonia.scm.it;
//~--- non-JDK imports --------------------------------------------------------
@@ -111,13 +112,17 @@ public abstract class HttpCacheITCaseBase<T>
/**
* 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();