From f35c863133c22bdc7d5a63dd914e10eda1ad04dc Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 8 Feb 2024 16:10:37 +0100 Subject: [PATCH] Fix test depending on user locale --- .../test/java/org/sonar/scm/git/ProcessWrapperFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:"); } } -- 2.39.5