Skip to content

Commit

Permalink
Fix flaky test in RemovingHostnamePatternsServiceTest
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoox committed Sep 27, 2024
1 parent 9994329 commit c4c647d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ void removeHostnamePatterns(String hostnamePatterns) throws Exception {
.repos().get(Project.REPO_DOGMA);
final Map<String, Entry<?>> log = dogmaRepo.find(Revision.HEAD, REMOVING_HOSTNAME_JOB_LOG).join();
final JsonNode data = log.get(REMOVING_HOSTNAME_JOB_LOG).contentAsJson();
assertThat(Jackson.readValue(data.get("timestamp").asText(), Instant.class)).isBefore(Instant.now());
assertThat(Jackson.readValue(data.get("timestamp").asText(), Instant.class))
.isBeforeOrEqualTo(Instant.now());
}

private static void assertCredential(Entry<?> entry, String credential) throws JsonParseException {
Expand Down

0 comments on commit c4c647d

Please sign in to comment.