Skip to content

Commit 7da9175

Browse files
committed
Fix ITs
1 parent 38a3883 commit 7da9175

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

its/it-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>org.sonarsource.orchestrator</groupId>
2929
<artifactId>sonar-orchestrator</artifactId>
30-
<version>3.34.0.2692</version>
30+
<version>3.38.0.115</version>
3131
<scope>test</scope>
3232
<exclusions>
3333
<exclusion>

its/it-tests/src/test/java/com/sonar/scanner/api/it/ScannerApiTestSuite.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ public class ScannerApiTestSuite {
4242
@ClassRule
4343
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv()
4444
.setSonarVersion(getSystemPropertyOrFail(SONAR_RUNTIME_VERSION))
45-
// The scanner api should still be compatible with previous LTS 6.7, and not the 7.9
46-
// at the time of writing, so the installed plugins should be compatible with
47-
// both 6.7 and 8.x. The latest releases of analysers drop the compatibility with
48-
// 6.7, that's why versions are hardcoded here.
49-
.addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "5.2.1.7778"))
45+
// The scanner api should still be compatible with 7.9
46+
.addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "7.0.1.14561"))
5047
.build();
5148

5249
private static String getSystemPropertyOrFail(String orchestratorPropertiesSource) {
@@ -58,8 +55,7 @@ private static String getSystemPropertyOrFail(String orchestratorPropertiesSourc
5855
}
5956

6057
public static void resetData(Orchestrator orchestrator) {
61-
// We add one day to ensure that today's entries are deleted.
62-
Instant instant = Instant.now().plus(1, ChronoUnit.DAYS);
58+
Instant instant = Instant.now();
6359

6460
// The expected format is yyyy-MM-dd.
6561
String currentDateTime = DateTimeFormatter.ISO_LOCAL_DATE

0 commit comments

Comments
 (0)