Skip to content

Commit

Permalink
test: fix testcontainers-based tests on ARM
Browse files Browse the repository at this point in the history
Spring Boot pins the jna dependency to a version that
causes testcontainers to not detect the Docker environment
on M1 Macs. We had to override the version to a newer one.
  • Loading branch information
romansey committed Mar 25, 2022
1 parent 228e16a commit 27164c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion services/habit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ ext {
springfox : '2.9.2',
liquibase : '4.4.3',
pactProvider : '3.6.12',
springCloudVersion: 'Greenwich.SR6'
springCloudVersion: 'Greenwich.SR6',
jna : '5.8.0'
]
}
// override the version the spring boot dependency-management plugin would enforce
ext['junit-jupiter.version'] = versions.junitJupiter
ext['jna.version'] = versions.jna // Required for Docker on ARM

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
Expand Down
4 changes: 3 additions & 1 deletion services/track/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ ext {
testcontainers : '1.15.3',
reflections : '0.9.12',
postgresql : '42.2.23',
springCloudVersion: 'Greenwich.SR6'
springCloudVersion: 'Greenwich.SR6',
jna : '5.8.0'
]
}
// override the version the spring boot dependency-management plugin would enforce
ext['junit-jupiter.version'] = versions.junitJupiter
ext['jna.version'] = versions.jna // Required for Docker on ARM

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
Expand Down

0 comments on commit 27164c1

Please sign in to comment.