From 631b2a61850bce96b3c6eddf267958be4b26dcc6 Mon Sep 17 00:00:00 2001 From: lukasz-jarocki-sonarsource <77498856+lukasz-jarocki-sonarsource@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:08:05 +0200 Subject: NO-JIRA fixing version of base pom and integration tests (#132) --- it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java | 5 +---- pom.xml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java b/it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java index 4f45f66..5804639 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java +++ b/it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java @@ -94,13 +94,10 @@ public abstract class ScannerTestCase { @After public void resetData() { - // We add one day to ensure that today's entries are deleted. - Instant instant = Instant.now().plus(1, ChronoUnit.DAYS); - // The expected format is yyyy-MM-dd. String currentDateTime = DateTimeFormatter.ISO_LOCAL_DATE .withZone(ZoneId.of("UTC")) - .format(instant); + .format(Instant.now()); orchestrator.getServer() .newHttpCall("/api/projects/bulk_delete") diff --git a/pom.xml b/pom.xml index 5867212..ea114a5 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.sonarsource.parent parent - 61.0.147 + 63.0.187 org.sonarsource.scanner.cli -- cgit v1.2.3