From: Julien HENRY Date: Thu, 8 Feb 2024 15:10:37 +0000 (+0100) Subject: Fix test depending on user locale X-Git-Tag: 10.5.0.89998~236 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f35c863133c22bdc7d5a63dd914e10eda1ad04dc;p=sonarqube.git Fix test depending on user locale --- diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java index 5490b476b3b..1eaa3c5cff6 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java @@ -45,7 +45,7 @@ public class ProcessWrapperFactoryTest { assertThatThrownBy(() -> processWrapper.execute()) .isInstanceOf(IllegalStateException.class); - assertThat(logTester.logs(Level.DEBUG).get(0)).contains("fatal: not a git repository"); + assertThat(logTester.logs(Level.DEBUG).get(0)).startsWith("fatal:"); } }