diff --git a/designer/server/src/test/scala/pl/touk/nussknacker/test/base/it/NuResourcesTest.scala b/designer/server/src/test/scala/pl/touk/nussknacker/test/base/it/NuResourcesTest.scala index 1858ee9265a..dfde4134681 100644 --- a/designer/server/src/test/scala/pl/touk/nussknacker/test/base/it/NuResourcesTest.scala +++ b/designer/server/src/test/scala/pl/touk/nussknacker/test/base/it/NuResourcesTest.scala @@ -468,7 +468,7 @@ trait NuResourcesTest forwardedUserName = None ) for { - _ <- dbioRunner.runInTransaction(writeProcessRepository.saveNewProcess(action)) + _ <- dbioRunner.runInSerializableTransactionWithRetry(writeProcessRepository.saveNewProcess(action)) id <- futureFetchingScenarioRepository.fetchProcessId(processName).map(_.get) } yield id } diff --git a/designer/server/src/test/scala/pl/touk/nussknacker/test/utils/domain/ScenarioHelper.scala b/designer/server/src/test/scala/pl/touk/nussknacker/test/utils/domain/ScenarioHelper.scala index 34507b6dee2..4f57f74fde6 100644 --- a/designer/server/src/test/scala/pl/touk/nussknacker/test/utils/domain/ScenarioHelper.scala +++ b/designer/server/src/test/scala/pl/touk/nussknacker/test/utils/domain/ScenarioHelper.scala @@ -190,7 +190,7 @@ private[test] class ScenarioHelper(dbRef: DbRef, clock: Clock, designerConfig: C forwardedUserName = None ) for { - _ <- dbioRunner.runInTransaction(writeScenarioRepository.saveNewProcess(action)) + _ <- dbioRunner.runInSerializableTransactionWithRetry(writeScenarioRepository.saveNewProcess(action)) id <- futureFetchingScenarioRepository.fetchProcessId(scenarioName).map(_.get) } yield id }