aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPawel Kupinski <pawel.kupinski@sonarsource.com>2024-09-11 15:33:09 +0200
committersonartech <sonartech@sonarsource.com>2024-09-11 20:03:48 +0000
commit4a901440b63ac6e2efd600d80b786eff8eead2ac (patch)
tree9377c0076245a0b09783e85773231bec9e0191eb /server
parent695c1260eb8442d021865258de4c50b58abd9273 (diff)
downloadsonarqube-4a901440b63ac6e2efd600d80b786eff8eead2ac.tar.gz
sonarqube-4a901440b63ac6e2efd600d80b786eff8eead2ac.zip
SGB-78 Fix flaky Bitbucket Cloud IT
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts
index 518a5cb3e31..540e0ebfbf6 100644
--- a/server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts
+++ b/server/sonar-web/src/main/js/api/mocks/AlmIntegrationsServiceMock.ts
@@ -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 {