Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoworko committed Oct 30, 2024
1 parent 6b79612 commit 6a93a16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ trait NuResourcesTest
forwardedUserName = None
)
for {
// FIXME: Using method `runInSerializableTransactionWithRetry` is a workaround for problem with flaky tests
// (some tests failed with [java.sql.SQLTransactionRollbackException: transaction rollback: serialization failure])
// the underlying cause of that errors needs investigating
_ <- dbioRunner.runInSerializableTransactionWithRetry(writeProcessRepository.saveNewProcess(action))
id <- futureFetchingScenarioRepository.fetchProcessId(processName).map(_.get)
} yield id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ private[test] class ScenarioHelper(dbRef: DbRef, clock: Clock, designerConfig: C
forwardedUserName = None
)
for {
// FIXME: Using method `runInSerializableTransactionWithRetry` is a workaround for problem with flaky tests
// (some tests failed with [java.sql.SQLTransactionRollbackException: transaction rollback: serialization failure])
// the underlying cause of that errors needs investigating
_ <- dbioRunner.runInSerializableTransactionWithRetry(writeScenarioRepository.saveNewProcess(action))
id <- futureFetchingScenarioRepository.fetchProcessId(scenarioName).map(_.get)
} yield id
Expand Down

0 comments on commit 6a93a16

Please sign in to comment.