diff options
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java b/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java index fa441160e8c..3095c6cb3b6 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java @@ -1068,7 +1068,7 @@ public class RuleIndexMediumTest { public void available_since() throws InterruptedException { dao.insert(dbSession, RuleTesting.newDto(RuleKey.of("java", "S001"))); dbSession.commit(); - Thread.sleep(500); + Date since = new Date(); dao.insert(dbSession, RuleTesting.newDto(RuleKey.of("java", "S002"))); dbSession.commit(); diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java index 7de0f049668..6192c030baa 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java @@ -39,7 +39,7 @@ public class LogInterceptorsTest { @Test public void private_constructor() { - assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class)); + assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class)).isTrue(); } } |