]> source.dussan.org Git - sonarqube.git/commitdiff
SGB-78 Fix flaky Bitbucket Cloud IT
authorPawel Kupinski <pawel.kupinski@sonarsource.com>
Wed, 11 Sep 2024 13:33:09 +0000 (15:33 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 11 Sep 2024 20:03:48 +0000 (20:03 +0000)
server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts

index 518a5cb3e31ebb8cbc1eafda31bbdbe2d2dc0875..540e0ebfbf6f55f0ed764a504ee0408b009daec3 100644 (file)
@@ -65,12 +65,8 @@ import {
   setupGitlabProjectCreation,
 } from '../alm-integrations';
 
-let uniqueNumber = 0;
-
 function createUniqueNumber() {
-  uniqueNumber += 1;
-
-  return uniqueNumber;
+  return Math.floor(Date.now() * Math.random());
 }
 
 export default class AlmIntegrationsServiceMock {