Skip to content

Commit

Permalink
initialise jobs in new transaction in tests (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-tw authored Dec 20, 2024
1 parent 1795a34 commit 16abd6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.48.1 - 2024/12/20

### Changed

- Fixed a lock timeout on update queries in tests, when running integration tests in a Transaction.
- introduced by 1.47.0

## 1.48.0 - 2024/12/13

### Added
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.48.0
version=1.48.1
org.gradle.internal.http.socketTimeout=120000
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean hasFinished(ExecuteAsyncHandle handle) {

@Override
public void reset() {
transactionsHelper.withTransaction().run(() -> {
transactionsHelper.withTransaction().asNew().run(() -> {
testTasksService.reset();
if (jobsProperties.isAutoInitialize()) {
initJobs(true);
Expand All @@ -68,7 +68,7 @@ public void reset() {

@Override
public void resetAndInitialize(Collection<IJob> jobs) {
transactionsHelper.withTransaction().run(() -> {
transactionsHelper.withTransaction().asNew().run(() -> {
testTasksService.reset();
initJobs(true, jobs);
});
Expand Down

0 comments on commit 16abd6f

Please sign in to comment.