mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
wait 1 second to fix last modified integration test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user