]> source.dussan.org Git - sonarqube.git/commitdiff
Fix test depending on user locale
authorJulien HENRY <julien.henry@sonarsource.com>
Thu, 8 Feb 2024 15:10:37 +0000 (16:10 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 9 Feb 2024 20:02:43 +0000 (20:02 +0000)
sonar-scanner-engine/src/test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java

index 5490b476b3b08b6fc1373a3f8b7bce95a331f720..1eaa3c5cff629717b7ea1446dda2092878a293b7 100644 (file)
@@ -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:");
   }
 
 }