From 1aa909194e4a2d21d39c696ea55ef82845d49f2b Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Mon, 11 Dec 2023 09:38:29 +0100
Subject: [PATCH] SSDM-14138: Fixed tests to not fail on jenkins

---
 api-openbis-python3-pybis/src/python/tests/test_project.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/api-openbis-python3-pybis/src/python/tests/test_project.py b/api-openbis-python3-pybis/src/python/tests/test_project.py
index 9f5daf5ca1a..a7920343d83 100644
--- a/api-openbis-python3-pybis/src/python/tests/test_project.py
+++ b/api-openbis-python3-pybis/src/python/tests/test_project.py
@@ -70,7 +70,7 @@ def test_get_project_by_code(space):
 
     timestamp = time.strftime("%a_%y%m%d_%H%M%S").upper()
 
-    space_code_1 = "space_1_" + timestamp
+    space_code_1 = "space_1_" + timestamp + "_" + str(random.randint(0, 1000))
     project_code = "project_" + timestamp
 
     o.new_space(code=space_code_1).save()
@@ -85,8 +85,8 @@ def test_get_project_fail_because_of_multiple_projects_existing(space):
 
     timestamp = time.strftime("%a_%y%m%d_%H%M%S").upper()
 
-    space_code_1 = "space_1_" + timestamp
-    space_code_2 = "space_2_" + timestamp
+    space_code_1 = "space_1_" + timestamp + "_" + str(random.randint(0, 1000))
+    space_code_2 = "space_2_" + timestamp + "_" + str(random.randint(0, 1000))
     project_code = "project_" + timestamp
 
     o.new_space(code=space_code_1).save()
-- 
GitLab