mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
wait 1 second to fix last modified integration test
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package sonia.scm.it;
|
package sonia.scm.it;
|
||||||
|
|
||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
@@ -111,13 +112,17 @@ public abstract class HttpCacheITCaseBase<T>
|
|||||||
/**
|
/**
|
||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
* @throws InterruptedException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void changingCollectionLastModifiedTest()
|
public void changingCollectionLastModifiedTest() throws InterruptedException
|
||||||
{
|
{
|
||||||
ClientResponse response = getCollectionResponse();
|
ClientResponse response = getCollectionResponse();
|
||||||
long lastModified = getLastModified(response);
|
long lastModified = getLastModified(response);
|
||||||
|
|
||||||
|
// wait 1 second because http date is not millisecond precision
|
||||||
|
Thread.sleep(1000l);
|
||||||
item = createSampleItem();
|
item = createSampleItem();
|
||||||
response = getCollectionResponse();
|
response = getCollectionResponse();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user