]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8192 fix unstability of UT of api/users/create 1320/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 20 Oct 2016 08:24:28 +0000 (10:24 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 20 Oct 2016 15:17:55 +0000 (17:17 +0200)
server/sonar-server/src/test/java/org/sonar/server/user/ws/CreateActionTest.java

index 74675dbd27f5ad2c3d9c116ed348e4c8bfa552e2..3143115bb4e4545e59bccbe4ea77337bb61eec6d 100644 (file)
@@ -29,6 +29,7 @@ import org.sonar.api.config.MapSettings;
 import org.sonar.api.config.Settings;
 import org.sonar.api.i18n.I18n;
 import org.sonar.api.utils.System2;
+import org.sonar.api.utils.internal.AlwaysIncreasingSystem2;
 import org.sonar.core.permission.GlobalPermissions;
 import org.sonar.db.DbTester;
 import org.sonar.db.organization.OrganizationDto;
@@ -59,7 +60,7 @@ public class CreateActionTest {
   private Settings settings = new MapSettings().setProperty("sonar.defaultGroup", DEFAULT_GROUP_NAME);
 
   @Rule
-  public DbTester db = DbTester.create(System2.INSTANCE);
+  public DbTester db = DbTester.create(new AlwaysIncreasingSystem2());
   @Rule
   public EsTester esTester = new EsTester(new UserIndexDefinition(settings));
   @Rule