Merge pull request #6888 from eclipse/jetty-10.0.x-6100-WindowsTests
Issue #6100 - fix flaky test MavenMetadataTest
This commit is contained in:
commit
f22bfcb887
|
@ -79,7 +79,7 @@ public class MavenMetadataTest
|
|||
@Test
|
||||
public void testIsExpiredTimestampYesterday()
|
||||
{
|
||||
LocalDateTime yesterday = LocalDateTime.now().minusDays(1);
|
||||
LocalDateTime yesterday = LocalDateTime.now(ZoneId.of("UTC")).minusDays(1);
|
||||
String timestamp = getTimestampFormatter().format(yesterday);
|
||||
assertTrue(MavenMetadata.isExpiredTimestamp(timestamp), "Timestamp should be stale: " + timestamp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue