Skip to content

Commit

Permalink
Fix sporadic failing Unit Tests (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
f11h authored Feb 17, 2023
1 parent fe975c6 commit a54df09
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import java.security.cert.X509Certificate;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Base64;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -104,9 +105,9 @@ class TrustListIntegrationTest {
private static final String authCertSubject = "C=" + countryCode;
private static final String IF_MODIFIED_SINCE_HEADER = "If-Modified-Since";
private static final ZoneId gmt = ZoneId.of("GMT");
private static final ZonedDateTime now = ZonedDateTime.now(gmt);
private static final ZonedDateTime nowMinusOneMinute = ZonedDateTime.now(gmt).minusMinutes(1);
private static final ZonedDateTime nowMinusOneHour = ZonedDateTime.now(gmt).minusHours(1);
private static final ZonedDateTime now = ZonedDateTime.now(gmt).truncatedTo(ChronoUnit.SECONDS);
private static final ZonedDateTime nowMinusOneMinute = now.minusMinutes(1);
private static final ZonedDateTime nowMinusOneHour = now.minusHours(1);

X509Certificate certUploadDe, certUploadEu, certCscaDe, certCscaEu, certAuthDe, certAuthEu, certDscDe, certDscEu,
certUploadDe2, certUploadEu2, certCscaDe2, certCscaEu2, certAuthDe2, certAuthEu2, certDscDe2, certDscEu2,
Expand Down

0 comments on commit a54df09

Please sign in to comment.