aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
Diffstat (limited to 'it')
-rw-r--r--it/src/test/java/com/sonarsource/scanner/it/ScannerTestCase.java5
1 files changed, 1 insertions, 4 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")