aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-12-06 11:32:02 +0100
committersonartech <sonartech@sonarsource.com>2022-12-09 20:03:10 +0000
commit5b5c074f3d6e0426df7649ee76e374c39687618b (patch)
treebd39330434d4ed3ce4e7684a293543c0d238d928 /server/sonar-main
parent1c7171d0aec77e28404716cc29643db085139fc7 (diff)
downloadsonarqube-5b5c074f3d6e0426df7649ee76e374c39687618b.tar.gz
sonarqube-5b5c074f3d6e0426df7649ee76e374c39687618b.zip
SONAR-17565 Support running SonarQube with Java 17
Diffstat (limited to 'server/sonar-main')
-rw-r--r--server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java b/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java
index 089200e62b4..5c508ad4021 100644
--- a/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java
+++ b/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java
@@ -34,6 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@@ -79,7 +80,7 @@ public class EsKeyStoreCliTest {
"-Des.distribution.type=tar");
verify(process.getOutputStream()).write(argThat(new ArrayContainsMatcher("value1\nvalue2\nvalue3\n")), eq(0), eq(21));
- verify(process.getOutputStream()).flush();
+ verify(process.getOutputStream(), atLeastOnce()).flush();
verify(process.getMock()).waitFor(1L, TimeUnit.MINUTES);
}